mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-22 23:23:43 +08:00
fix
This commit is contained in:
parent
f8ceb1713b
commit
d035f309c2
@ -319,7 +319,7 @@ function RSIAutoLogin(email, pwd) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function SCTShowToast(message, duration) {
|
function SCTShowToast(message) {
|
||||||
let m = document.createElement('div');
|
let m = document.createElement('div');
|
||||||
m.innerHTML = message;
|
m.innerHTML = message;
|
||||||
m.style.cssText = "font-family:siyuan;max-width:60%;min-width: 150px;padding:0 14px;height: 40px;color: rgb(255, 255, 255);line-height: 40px;text-align: center;border-radius: 4px;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 999999;background: rgba(0, 0, 0,.7);font-size: 16px;";
|
m.style.cssText = "font-family:siyuan;max-width:60%;min-width: 150px;padding:0 14px;height: 40px;color: rgb(255, 255, 255);line-height: 40px;text-align: center;border-radius: 4px;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 999999;background: rgba(0, 0, 0,.7);font-size: 16px;";
|
||||||
|
@ -94,12 +94,12 @@ class AppConf {
|
|||||||
);
|
);
|
||||||
await windowManager.show();
|
await windowManager.show();
|
||||||
await Window.initialize();
|
await Window.initialize();
|
||||||
|
await Window.hideWindowControls();
|
||||||
if (windowsDeviceInfo.productName.contains("Windows 11")) {
|
if (windowsDeviceInfo.productName.contains("Windows 11")) {
|
||||||
await Window.setEffect(
|
await Window.setEffect(
|
||||||
effect: WindowEffect.acrylic,
|
effect: WindowEffect.acrylic,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
await Window.hideWindowControls();
|
|
||||||
});
|
});
|
||||||
await _checkUpdate();
|
await _checkUpdate();
|
||||||
AnalyticsApi.touch("launch");
|
AnalyticsApi.touch("launch");
|
||||||
|
Loading…
Reference in New Issue
Block a user