xcv58 / Custom-JavaScript-for-Websites-2

Run custom JavaScript on any website
https://xcv58.xyz/inject-js
MIT License
180 stars 46 forks source link

Bug that adds page to hosts table with no script #881

Open xcv58 opened 1 year ago

xcv58 commented 1 year ago

Hello, just a tiny bug I noticed in cjs2... When you open it on any page and don't want to add user scripts to the current page, but check out the other user scripts you added, it automatically adds the current page to the hosts table, even when the current website is chrome://newtab. So I think it would make sense to only add an entry to the hosts table, when there is actually a (non-empty) script present.

fweth commented 1 year ago

I think this could be due to line 174 in AppStore.tsx.