浏览代码

Fix preserve origins when clicking on defaults

simov 8 年之前
父节点
当前提交
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'})
   }