|
@@ -106,6 +106,7 @@ $(async function () {
|
|
|
initAppElementNodes(this);
|
|
|
this._renderSideMenu();
|
|
|
this.renderLangSelector();
|
|
|
+ checkIsVBoxBrowser();
|
|
|
checkLanguageClass(this);
|
|
|
bindGlobalEvents(this);
|
|
|
setTimeout(() => {
|
|
@@ -121,6 +122,14 @@ $(async function () {
|
|
|
app.run();
|
|
|
return app;
|
|
|
|
|
|
+ function checkIsVBoxBrowser() {
|
|
|
+ if (navigator.userAgent.toLowerCase().indexOf("vbox") > 0) {
|
|
|
+ $(".layui-header").css("visibility", "hidden");
|
|
|
+ $(".layui-side").addClass("flyinsono_noheader");
|
|
|
+ $(".layui-body").addClass("flyinsono_noheader");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
async function checkLanguageClass(app) {
|
|
|
let isCN = locale.isCurrentChinese();
|
|
|
app.el.toggleClass("lang-en", !isCN);
|