mirror of
https://github.com/rhysd/Mstdn.git
synced 2025-02-02 06:52:13 +01:00
fix sandbox flag on switching menubar window
This commit is contained in:
parent
acedcf750b
commit
92c27957f7
@ -255,6 +255,7 @@ function startMenuBar(account: Account, config: Config, bar: Menubar.MenubarApp
|
|||||||
log.debug('Recreate menubar window with different partition:', account);
|
log.debug('Recreate menubar window with different partition:', account);
|
||||||
const pref = mb.getOption('webPreferences');
|
const pref = mb.getOption('webPreferences');
|
||||||
pref.partition = partitionForAccount(account);
|
pref.partition = partitionForAccount(account);
|
||||||
|
pref.sandbox = sandboxFlag(config, account);
|
||||||
mb.setOption('webPreferences', pref);
|
mb.setOption('webPreferences', pref);
|
||||||
mb.showWindow();
|
mb.showWindow();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user