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