1
0
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:
rhysd 2017-04-25 23:33:32 +09:00
parent acedcf750b
commit 92c27957f7

View File

@ -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 {