JoeGandy / ShareX-Custom-Upload

A little PHP script created for uploading custom sharex files to your own webserver
MIT License
165 stars 50 forks source link

Firefox hangs on page loading #128

Open T0b1-iOS opened 3 years ago

T0b1-iOS commented 3 years ago

Hello,

it seems that Firefox is unable to correctly load the webinterface and instead just hangs with seemingly random status messages in the bottom-left corner. Quick debugging showed that the issue is caused by this line in setTheme.js document.querySelector( 'link[href*="toggle-bootstrap-dark-overlay.min.css"]' ).disabled = false; more specifically, the .disabled = false; part.

Chrome & Safari work fine. Since I'm not overly familiar with the dark magic you seem to be doing regarding the dark-theme.min.css I wanted to ask if this is a bug in your code, in Firefox or if I just didn't properly set up the serverside part of the webinterface which is probably more likely.

Regards T0b1

T0b1-iOS commented 3 years ago

Thanks, that fixes the issue! You just need to also apply it in login.php and register.php

LordByronRS commented 3 years ago

141 Just created a new pull request to fix this on every site.