Explorar o código

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 %!s(int64=5) %!d(string=hai) anos
pai
achega
d714862ad9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;