forked from mystiq/hydrogen-web
expose IE11 flag in JS as well
This commit is contained in:
parent
57da68fb1e
commit
fbbdaf7dfa
1 changed files with 3 additions and 2 deletions
|
@ -99,6 +99,8 @@ export class Platform {
|
||||||
} else {
|
} else {
|
||||||
this.request = xhrRequest;
|
this.request = xhrRequest;
|
||||||
}
|
}
|
||||||
|
const isIE11 = !!window.MSInputMethodContext && !!document.documentMode;
|
||||||
|
this.isIE11 = isIE11;
|
||||||
}
|
}
|
||||||
|
|
||||||
get updateService() {
|
get updateService() {
|
||||||
|
@ -116,8 +118,7 @@ export class Platform {
|
||||||
}
|
}
|
||||||
|
|
||||||
createAndMountRootView(vm) {
|
createAndMountRootView(vm) {
|
||||||
const isIE11 = !!window.MSInputMethodContext && !!document.documentMode;
|
if (this.isIE11) {
|
||||||
if (isIE11) {
|
|
||||||
this._container.className += " legacy";
|
this._container.className += " legacy";
|
||||||
}
|
}
|
||||||
window.__hydrogenViewModel = vm;
|
window.__hydrogenViewModel = vm;
|
||||||
|
|
Loading…
Reference in a new issue