From 92c27957f76af59bfdcba6e9c81a1ceee353a3b8 Mon Sep 17 00:00:00 2001 From: rhysd Date: Tue, 25 Apr 2017 23:33:32 +0900 Subject: [PATCH] fix sandbox flag on switching menubar window --- main/window.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/main/window.ts b/main/window.ts index cc9983e..921a7ba 100644 --- a/main/window.ts +++ b/main/window.ts @@ -255,6 +255,7 @@ function startMenuBar(account: Account, config: Config, bar: Menubar.MenubarApp log.debug('Recreate menubar window with different partition:', account); const pref = mb.getOption('webPreferences'); pref.partition = partitionForAccount(account); + pref.sandbox = sandboxFlag(config, account); mb.setOption('webPreferences', pref); mb.showWindow(); } else {