Просмотр исходного кода

Fix preserve origins when clicking on defaults

simov 8 лет назад
Родитель
Сommit
4ddb7a807d
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      background/background.js

+ 3 - 1
background/background.js

@@ -204,7 +204,9 @@ chrome.runtime.onMessage.addListener((req, sender, sendResponse) => {
     notifyContent({message: 'reload'})
   }
   else if (req.message === 'defaults') {
-    set(defaults)
+    var options = Object.assign({}, defaults)
+    options.origins = state.origins
+    set(options)
     sendResponse()
     notifyContent({message: 'reload'})
   }