UserIsntAvailable / bdump

Dumps information about current open tabs or bookmarks.
0 stars 0 forks source link

Fix compatibility issues with `Firefox for Android` #1

Open UserIsntAvailable opened 2 years ago

UserIsntAvailable commented 2 years ago

Download mechanism doesn't work.

// https://stackoverflow.com/questions/13405129/create-and-save-a-file-with-javascript/53864791#53864791
const a = document.createElement("a");
a.href = url;
// FIX: For now just appending epoch timestamp.
a.download = `${namePrefix}-dump-${Date.now()}.json`;
document.body.appendChild(a);
a.click();

setTimeout(() => { document.body.removeChild(a); window.URL.revokeObjectURL(url); }, 0);
UserIsntAvailable commented 2 years ago

UI Problems

The toolbar is not being shown properly. For some reason, it is not scaling to the screen layout ( maybe rem it is not supposed to work in mobile; doesn't make much sense, but could be a possibility ).