Skip to content
Snippets Groups Projects
Unverified Commit c48a33c9 authored by syuilo's avatar syuilo Committed by GitHub
Browse files

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

document.domainをチェックする際に、hostのかわりにhostnameを使うように
parents ca78cbc7 8d6356c5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment