1
0
Fork 0
mirror of https://github.com/marcrobledo/RomPatcher.js.git synced 2025-06-27 16:25:54 +00:00

- feat (web): dynamic JS modules loading

- feat (web): added onloadpatch event
- fix (cli): fixed path for JS files
This commit is contained in:
Marc Robledo 2024-08-11 21:30:25 +02:00
parent bc82f6d748
commit de2f0e5c7d
9 changed files with 315 additions and 210 deletions

View file

@ -101,6 +101,9 @@ window.addEventListener('load', function (evt) {
});
document.getElementById('switch-create-button').addEventListener('click', function () {
if(!RomPatcherWeb.isInitialized())
throw new Error('Rom Patcher JS is not initialized yet');
if (/disabled/.test(document.getElementById('switch-create').className)) {
try{
if(!PatchBuilderWeb.isInitialized())