simov 7 lat temu
rodzic
commit
3aca42029e
2 zmienionych plików z 3 dodań i 1 usunięć
  1. 2 1
      content/content.js
  2. 1 0
      content/options.js

+ 2 - 1
content/content.js

@@ -82,7 +82,8 @@ function mount () {
       }
       else {
         if (state.theme) {
-          dom.push(m('link#_theme [rel="stylesheet"] [type="text/css"]', {
+          dom.push(m('link#_theme', {
+            rel: 'stylesheet', type: 'text/css',
             href: chrome.runtime.getURL('/themes/' + state.theme + '.css')
           }))
         }

+ 1 - 0
content/options.js

@@ -45,6 +45,7 @@ var events = {
         message: 'options.csp',
         csp: state.csp,
       })
+      m.redraw()
     })
   },