ソースを参照

demo: fix function test system and page breaks for official demo

page breaks weren't done on official page,
probably some random stuff at the start of the string
sschmid 5 年 前
コミット
d714862ad9
1 ファイル変更1 行追加1 行削除
  1. 1 1
      demo/index.js

+ 1 - 1
demo/index.js

@@ -656,7 +656,7 @@ import { OpenSheetMusicDisplay } from '../src/OpenSheetMusicDisplay/OpenSheetMus
             openSheetMusicDisplay.setOptions({ autoBeam: autobeamOptionStashedValue });
             autobeamOptionNeedsReset = false;
         }
-        if (!isCustom && str.startsWith('OSMD_Function_Test_System_and_Page_Breaks')) {
+        if (!isCustom && str.includes("OSMD_Function_Test_System_and_Page_Breaks")) {
             pageBreaksOptionStashedValue = openSheetMusicDisplay.EngravingRules.NewPageAtXMLNewPageAttribute;
             systemBreaksOptionStashedValue = openSheetMusicDisplay.EngravingRules.NewSystemAtXMLNewSystemAttribute;
             pageBreaksOptionNeedsReset = true;