visua0 / Melvor-Idle-Combat-Simulator-Reloaded

A browser extension for the game Melvor Idle
GNU General Public License v3.0
54 stars 23 forks source link

Simulations not running on Firefox #103

Closed XianMaeve closed 1 year ago

XianMaeve commented 1 year ago

firefox_hYjFtNsqya firefox_iwHESqubSy

Attached are screenshots from error in console

I run SEMI and a few userscripts, but the error still happens with only combat simulator installed.

Simulator hangs on 0/x whenever trying to simulate, and on canceling... after canceling.

saltyeyes commented 1 year ago

I just had a similar issue, which was caused by the default CSP not liking the use of eval(). Can you try downloading the latest release and adding the following to manifest.json, see if that fixes the problem for you? "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self';"

gmiclotte commented 1 year ago

Oh joy, and here I thought the firefox-hates-eval saga would finally be over.

Should be fixed if you update to the most recent version (v1.7.0) on AMO. Thanks for providing the fix @saltyeyes

Note that while the most recent version is v1.7.0, it incorrectly shows v1.6.10 in game.