I was able to get the extension somehow working in Firefox with a few changes
|
chrome.devtools.panels.create("SharePoint", null, "index.html", null); |
That needs to changed to
chrome.devtools.panels.create("SharePoint", "", "index.html");
The bigger refactor was for the definition file loads for monaco-editor. Firefox does not support the following API that is used.
chrome.runtime.getPackageDirectoryEntry
Thus I created a bit hacky workaround: creating a gulp task, that creates dependency.ts file with all the definitions as an JSON array that can be created on build time.
After that I was able to load the extension successfully in Firefox. I think Firefox 109 finally supports officially manifest v3.
I can share my hack, but I guess gulp is a bit deprecated. But I recommend the library definitions would be loaded on buildtime, instead of runtime.
I was able to get the extension somehow working in Firefox with a few changes
sp-editor/public/chrome/event.js
Line 1 in 8e2b147
That needs to changed to
The bigger refactor was for the definition file loads for monaco-editor. Firefox does not support the following API that is used.
Thus I created a bit hacky workaround: creating a gulp task, that creates dependency.ts file with all the definitions as an JSON array that can be created on build time.
After that I was able to load the extension successfully in Firefox. I think Firefox 109 finally supports officially manifest v3.
I can share my hack, but I guess gulp is a bit deprecated. But I recommend the library definitions would be loaded on buildtime, instead of runtime.