소스 검색

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;