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

@ -208,7 +208,10 @@ select:focus:not(:disabled),
input[type=checkbox].styled:focus:not(:disabled){
box-shadow: var(--rom-patcher-color-primary-focus) 0 0 0 2px;
}
input[type=file].w100, select.w100{width:100%}
#rom-patcher-container input[type=file],
#rom-patcher-container select,
#patch-builder-container input[type=file]
{width:100%}
input[type=file]{padding:6px 10px}
input[type=file]::file-selector-button{display:none}
select{

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())