simov преди 7 години
родител
ревизия
3aca42029e
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  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()
     })
   },