Closed EnergoStalin closed 12 months ago
problem in target="_blank"
Script loading later than PWA performing first check when using ?url= API. If opening in current tab it's already loaded i guess so it's not a problem. Probably need some delay to let script load first before processing ?url= in PWA.
Is there any error message? I tried the link and it seems to be working fine.
You don't need to click on the page, just wait a few seconds after opening it and you will see the download button change to "downloading" style.
I can reproduce it opening this https://comic-read.pages.dev/?url=https%3A%2F%2Fc6.kemono.party%2Fdata%2F03%2F57%2F03577a30cb1b7d80bd6911021e7e33cfd2a6e30912585d3580d245ade0ae375a.zip
with middle click(new tab) opening in the same tab works perfect
Got this in yandex(chromium) and firefox browsers
Maybe not perfect seems very inconsistent now it even don't work in the same tab.
Fresh browser profile reproducible
Successfully reproduced, I will fix it later.
Already updated.
Works perfectly now thanks!
If i understand correctly from what you said when you implemented this feature. Such
https://comic-read.pages.dev/?url=https%3A%2F%2Fc6.kemono.party%2Fdata%2F03%2F57%2F03577a30cb1b7d80bd6911021e7e33cfd2a6e30912585d3580d245ade0ae375a.zip
link should start download immediately. Or there's a browser limitation where i should click on the page first before script being able to download? Anyway in such case error message is not helpful i think.
Sorry for didn't testing it earlier.
Here's the snippet for kemono.paty to convert all .zip links to PWA links i'm using
Through "Enter URL" works as expected and setting the same link in window location