Browse Source

Fix preserve origins when clicking on defaults

simov 8 năm trước cách đây
mục cha
commit
4ddb7a807d
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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'})
   }