mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 22:03:50 +02:00
Fix linter
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"root": true,
|
||||
"extends": ["@babel/core", "eslint:all", "prettier"],
|
||||
"extends": ["eslint:all", "prettier"],
|
||||
"env": {
|
||||
"browser": true,
|
||||
"commonjs": true,
|
||||
@@ -16,7 +16,6 @@
|
||||
},
|
||||
"requireConfigFile": false,
|
||||
"babelOptions": {
|
||||
"presets": ["@babel/preset-env"],
|
||||
"parserOpts": {
|
||||
"plugins": ["importAssertions"]
|
||||
}
|
||||
|
||||
@@ -13001,16 +13001,18 @@ speechSynthesis.getVoices();
|
||||
$app.data.isStartAtWindowsStartup = configRepository.getBool(
|
||||
'VRCX_StartAtWindowsStartup'
|
||||
);
|
||||
$app.data.isStartAsMinimizedState =
|
||||
(await VRCXStorage.Get('VRCX_StartAsMinimizedState')) === 'true';
|
||||
$app.data.isCloseToTray = VRCXStorage.Get('VRCX_CloseToTray') === 'true';
|
||||
$app.data.isStartAsMinimizedState = false;
|
||||
$app.data.isCloseToTray = false;
|
||||
VRCXStorage.Get('VRCX_StartAsMinimizedState').then((result) => {
|
||||
$app.isStartAsMinimizedState = result === 'true';
|
||||
});
|
||||
VRCXStorage.Get('VRCX_CloseToTray').then((result) => {
|
||||
$app.isCloseToTray = result === 'true';
|
||||
});
|
||||
if (configRepository.getBool('VRCX_CloseToTray')) {
|
||||
// move back to JSON
|
||||
$app.data.isCloseToTray = configRepository.getBool('VRCX_CloseToTray');
|
||||
await VRCXStorage.Set(
|
||||
'VRCX_CloseToTray',
|
||||
$app.data.isCloseToTray.toString()
|
||||
);
|
||||
VRCXStorage.Set('VRCX_CloseToTray', $app.data.isCloseToTray.toString());
|
||||
configRepository.remove('VRCX_CloseToTray');
|
||||
}
|
||||
var saveVRCXWindowOption = function () {
|
||||
|
||||
@@ -4,21 +4,21 @@ function transformKey(key) {
|
||||
return String(key).toLowerCase();
|
||||
}
|
||||
|
||||
function waitSynchronous(promise) {
|
||||
if (typeof promise !== 'object' || promise === null) {
|
||||
return promise;
|
||||
}
|
||||
console.log('waitSynchronous', promise);
|
||||
while (true) {
|
||||
var state = promise.getState();
|
||||
if (state === 'resolved') {
|
||||
return promise.get();
|
||||
}
|
||||
if (state === 'rejected') {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
// function waitSynchronous(promise) {
|
||||
// if (typeof promise !== 'object' || promise === null) {
|
||||
// return promise;
|
||||
// }
|
||||
// console.log('waitSynchronous', promise);
|
||||
// while (true) {
|
||||
// var state = promise.getState();
|
||||
// if (state === 'resolved') {
|
||||
// return promise.get();
|
||||
// }
|
||||
// if (state === 'rejected') {
|
||||
// return null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
class SharedRepository {
|
||||
remove(key) {
|
||||
|
||||
Reference in New Issue
Block a user