nanka iroiro

Closes #1168, #1169
This commit is contained in:
syuilo 2018-03-03 07:32:18 +09:00
parent 165c93b248
commit 6ba1035b69
10 changed files with 45 additions and 11 deletions

View file

@ -61,11 +61,13 @@
app = isMobile ? 'mobile' : 'desktop';
}
const ver = localStorage.getItem('v') || VERSION;
// 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}.${VERSION}.${lang}.js`);
script.setAttribute('src', `/assets/${app}.${ver}.${lang}.js`);
script.setAttribute('async', 'true');
script.setAttribute('defer', 'true');
head.appendChild(script);