mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-09-26 06:35:45 +00:00
misc
This commit is contained in:
+2
-1
@@ -185,7 +185,8 @@ function upgradeConfig (_config: Config): Config {
|
||||
}
|
||||
|
||||
if (config.configVersion < 12) {
|
||||
config.widgets.push({
|
||||
const afterSettings = config.widgets.findIndex(w => w.wmType === 'settings')
|
||||
config.widgets.splice(afterSettings + 1, 0, {
|
||||
...defaultConfig().widgets.find(w => w.wmType === 'item-search')!,
|
||||
wmWants: 'show',
|
||||
wmId: Math.max(0, ...config.widgets.map(_ => _.wmId)) + 1
|
||||
|
||||
@@ -53,6 +53,7 @@ export async function createOverlayWindow () {
|
||||
webSecurity: false,
|
||||
allowRunningInsecureContent: false,
|
||||
webviewTag: true,
|
||||
spellcheck: false,
|
||||
defaultFontSize: config.get('fontSize'),
|
||||
preload: path.join(__dirname, 'preload.js')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user