frianasoa / Ze-Notes

Zotero plugin for note management. Helping you visualize your notes and annotations efficiently.
73 stars 2 forks source link

open Tab by loadURI get error #18

Closed zzlb0224 closed 6 months ago

zzlb0224 commented 6 months ago

NS_ERROR_XPC_BAD_CONVERT_JS: Could not convert JavaScript argument arg 0 [nsIWebNavigation.loadURI]

try this. change

     Ui.iframe.loadURI(url, {

to

      const iframe = Ui.iframe;
      try {
        iframe.loadURI(url, {
          triggeringPrincipal:
            Services.scriptSecurityManager.getSystemPrincipal(),
        });
      } catch (e) {
          ztoolkit.log("loadURI 错误修复了吗?");
        iframe.src = url;
      }
frianasoa commented 6 months ago

Hi! Thanks for your feedback. Yes, it does not seem to work with the new update of Zotero 7. I will work on it. There are other parts of the code that I need to change as well.

Edit: I have released version 0.8.4. It should be fixed now. Thanks again.

hahahacecilia commented 6 months ago

Finally it works with my Zotero 7, thanks a lot!

zzlb0224 commented 6 months ago

谢谢,我更新一下