fix(settings): fixed the settings panel was shown by default

fix(settings): fixed close button
feat(settings): use query string to bring up the settings panel
doc(readme): update README.md
This commit is contained in:
Halyul
2021-06-03 23:47:21 -04:00
parent 78f142152f
commit 0f1174d142
5 changed files with 35 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
const params = new URLSearchParams(window.location.search);
function supportsWebGL() {
try {
let canvas = document.createElement("canvas");
@@ -55,6 +57,9 @@ if (!supportsWebGL()) {
window.operatorSettings.success(e);
settings.spinePlayerLoaded = true;
settings.loadViewport();
if (params.has("settings")) {
settings.open();
}
},
});
settings = new Settings({