فهرست منبع

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(''),
     });
   }
 }