summaryrefslogtreecommitdiff
path: root/src/web/app/boot.js
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-15 12:56:50 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-15 12:56:50 +0900
commit45cb5cec04e4e6eb968bc4d1b54e8daf54b404ae (patch)
tree8d6ea96e0189c2cfaa677b8cadb4597e5e1b8d81 /src/web/app/boot.js
parentoops (diff)
downloadmisskey-45cb5cec04e4e6eb968bc4d1b54e8daf54b404ae.tar.gz
misskey-45cb5cec04e4e6eb968bc4d1b54e8daf54b404ae.tar.bz2
misskey-45cb5cec04e4e6eb968bc4d1b54e8daf54b404ae.zip
#1239
Diffstat (limited to '')
-rw-r--r--src/web/app/boot.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js
index 2d2e27df30..41685aadca 100644
--- a/src/web/app/boot.js
+++ b/src/web/app/boot.js
@@ -62,13 +62,17 @@
app = isMobile ? 'mobile' : 'desktop';
}
+ // Script version
const ver = localStorage.getItem('v') || VERSION;
+ // Whether use raw version script
+ const raw = localStorage.getItem('useRawScript') == 'true';
+
// Load an app script
// Note: 'async' make it possible to load the script asyncly.
// 'defer' make it possible to run the script when the dom loaded.
const script = document.createElement('script');
- script.setAttribute('src', `/assets/${app}.${ver}.${lang}.js`);
+ script.setAttribute('src', `/assets/${app}.${ver}.${lang}.${raw ? 'raw' : 'min'}.js`);
script.setAttribute('async', 'true');
script.setAttribute('defer', 'true');
head.appendChild(script);