Переглянути джерело

fix: onClick is a function reference

fixes #1721
tophf 2 роки тому
батько
коміт
4c237e1be7
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/background/utils/update.js

+ 1 - 1
src/background/utils/update.js

@@ -32,7 +32,7 @@ function displayNotes(notes) {
     notify({
       // FF doesn't show notifications of type:'list' so we'll use `text` everywhere
       text: notes.map(n => n.text).join('\n'),
-      onClick: commands.OpenEditor(''),
+      onClick: () => commands.OpenEditor(''),
     });
   }
 }