-
Notifications
You must be signed in to change notification settings - Fork 32
New Firefox release #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
yes it's planned but looking for help with testing on firefox |
I can help with that! |
@pgrosslicht that would be awesome. If you can install it as an unpacked extension and report any bugs you encounter here that would be helpful. I would happily review any PRs for firefox fixes that people want to submit. |
Ok, I've tried installing it, here's the issues I ran into:
With these changes I can now at least install the extension in Firefox. I can see the icon in my toolbar and preferences are looking good too. However, when clicking the icon (after configuring my server), the popup shows just for an instant before closing again. The console logs This seems to be because Firefox' --- a/popup.js
+++ b/popup.js
@@ -37,16 +37,9 @@ async function sendToArchiveBox(url, tags) {
tags: tags.join(','),
});
- const addResponse = await new Promise((resolve, reject) => {
- chrome.runtime.sendMessage({
- type: 'archivebox_add',
- body: addCommandArgs
- }, (response) => {
- if (!response.ok) {
- reject(`${response.errorMessage}`);
- }
- resolve(response);
- });
+ const addResponse = await chrome.runtime.sendMessage({
+ type: 'archivebox_add',
+ body: addCommandArgs
})
ok = true; This seems to make it send the archiving API call to ArchiveBox at least, but the popup still closes instantly. Since this is good enough for me, this is about as far as I went. |
A PR for those fixes would be awesome @pgrosslicht! If you don't have time no worries, @benmuth can add these patches in our next round of fixes after #47 is merged. |
I'm a bit hesitant providing a PR because as I don't use Chrome I have no idea if any of my changes break anything for Chrome 🙈 |
Hello,
the linked Firefox extension (https://addons.mozilla.org/en-US/firefox/addon/archivebox-exporter/) has last been updated 3 years ago, is there any chance to get the new version packaged for Firefox as well?
I've quickly tried to run it in Firefox, but it seems like there could be some code changes necessary as it didn't submit the urls to ArchiveBox, but failed here.
Thank you!
The text was updated successfully, but these errors were encountered: