This commit is contained in:
syuilo 2018-03-15 13:11:31 +09:00
parent 45cb5cec04
commit cc49e1af8e
3 changed files with 14 additions and 5 deletions

View file

@ -65,8 +65,11 @@
// Script version
const ver = localStorage.getItem('v') || VERSION;
// Whether in debug mode
const isDebug = localStorage.getItem('debug') == 'true';
// Whether use raw version script
const raw = localStorage.getItem('useRawScript') == 'true';
const raw = localStorage.getItem('useRawScript') == 'true' && isDebug;
// Load an app script
// Note: 'async' make it possible to load the script asyncly.