mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 04:33:09 +02:00
Merge pull request #1293 from rinsuki/fix/using-hostname-insteadof-host
document.domainをチェックする際に、hostのかわりにhostnameを使うように
This commit is contained in:
commit
c48a33c996
1 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ import ElementLocaleJa from 'element-ui/lib/locale/lang/ja';
|
||||||
import App from './app.vue';
|
import App from './app.vue';
|
||||||
import checkForUpdate from './common/scripts/check-for-update';
|
import checkForUpdate from './common/scripts/check-for-update';
|
||||||
import MiOS, { API } from './common/mios';
|
import MiOS, { API } from './common/mios';
|
||||||
import { version, host, lang } from './config';
|
import { version, hostname, lang } from './config';
|
||||||
|
|
||||||
let elementLocale;
|
let elementLocale;
|
||||||
switch (lang) {
|
switch (lang) {
|
||||||
|
@ -60,8 +60,8 @@ console.info(
|
||||||
window.clearTimeout((window as any).mkBootTimer);
|
window.clearTimeout((window as any).mkBootTimer);
|
||||||
delete (window as any).mkBootTimer;
|
delete (window as any).mkBootTimer;
|
||||||
|
|
||||||
if (host != 'localhost') {
|
if (hostname != 'localhost') {
|
||||||
document.domain = host;
|
document.domain = hostname;
|
||||||
}
|
}
|
||||||
|
|
||||||
//#region Set lang attr
|
//#region Set lang attr
|
||||||
|
|
Loading…
Reference in a new issue