✨ Support always-one-top and disabled-web-shortcuts
This commit is contained in:
4
bin/helpers/merge.ts
vendored
4
bin/helpers/merge.ts
vendored
@@ -14,6 +14,7 @@ export async function mergeConfig(url: string, options: PakeAppOptions, tauriCon
|
||||
fullscreen,
|
||||
transparent,
|
||||
alwaysOnTop,
|
||||
disabledWebShortcuts,
|
||||
userAgent,
|
||||
showSystemTray,
|
||||
systemTrayIcon,
|
||||
@@ -34,6 +35,7 @@ export async function mergeConfig(url: string, options: PakeAppOptions, tauriCon
|
||||
fullscreen,
|
||||
transparent,
|
||||
alwaysOnTop,
|
||||
disabledWebShortcuts,
|
||||
resizable,
|
||||
};
|
||||
Object.assign(tauriConf.pake.windows[0], { url, ...tauriConfWindowOptions });
|
||||
@@ -193,7 +195,7 @@ export async function mergeConfig(url: string, options: PakeAppOptions, tauriCon
|
||||
logger.error('The injected file must be in either CSS or JS format.');
|
||||
return;
|
||||
}
|
||||
const files = inject.map(filepath => path.isAbsolute(filepath) ? filepath : path.join(process.cwd(), filepath));
|
||||
const files = inject.map(filepath => path.isAbsolute(filepath) ? filepath : path.join(process.cwd(), filepath));
|
||||
tauriConf.pake.inject = files;
|
||||
await combineFiles(files, injectFilePath);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user