Merge pull request #1293 from rinsuki/fix/using-hostname-insteadof-host

document.domainをチェックする際に、hostのかわりにhostnameを使うように
This commit is contained in:
syuilo 2018-03-26 14:32:22 +09:00 committed by GitHub
commit c48a33c996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ import ElementLocaleJa from 'element-ui/lib/locale/lang/ja';
import App from './app.vue';
import checkForUpdate from './common/scripts/check-for-update';
import MiOS, { API } from './common/mios';
import { version, host, lang } from './config';
import { version, hostname, lang } from './config';
let elementLocale;
switch (lang) {
@ -60,8 +60,8 @@ console.info(
window.clearTimeout((window as any).mkBootTimer);
delete (window as any).mkBootTimer;
if (host != 'localhost') {
document.domain = host;
if (hostname != 'localhost') {
document.domain = hostname;
}
//#region Set lang attr