Passing a URI to Zotero.File.getContentsAsync() is deprecated -- use Zotero.HTTP.request() instead
lifan0127 opened this issue · 2 comments
lifan0127 commented
The use of Zotero.File.getContentsAsync() in the following file seems to cause the deprecation warning as mentioned in the title.
windingwind commented
Thx. This is a known issue.
The uri of plugin resources can be a http uri or a local file uri, depending on how the plugin is loaded. This file API handles automatically.
If we don’t use this API, we’ll have to save a copy of it in the lib. Considering this API is only used in the Z6 compatibility code and there’s no evidence that it will be removed before Z6 comes to its end of support, it’s safe to continue using it.
lifan0127 commented
Okay. Thanks for the explanation!