Skip to content

Commit 2002b58

Browse files
committed
feat: Add log level parameter
1 parent 0d647fe commit 2002b58

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/environment.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ export default {
55
settings.core.fontDirectory = "/font/";
66
settings.player.soundFont = "/soundfont/sonivox.sf3";
77

8+
const params = new URL(window.location.href).searchParams;
9+
settings.fillFromJson({
10+
core: {
11+
logLevel: (params.get('loglevel') ?? 'info') as keyof typeof alphaTab.LogLevel
12+
}
13+
})
14+
815
settings.display.resources.copyrightFont.families = ["Noto Sans"];
916
settings.display.resources.titleFont.families = ["Noto Serif"];
1017
settings.display.resources.subTitleFont.families = ["Noto Serif"];

0 commit comments

Comments
 (0)