diff --git a/dist/all.init.js b/dist/all.init.js index e577f2a..1b4d6fa 100644 --- a/dist/all.init.js +++ b/dist/all.init.js @@ -5,15 +5,18 @@ */ import cfg from "./oreuicfg.json" with {type:"json"}; import {info} from "./libs/info.js"; + +globalThis.oreui = { + main: oreui, + info: info, + path: cfg.path +} + import {sounds, playSound} from "./libs/sounds.js"; import {oreui} from "./libs/main.js"; globalThis.playSound = playSound, globalThis.sounds = sounds; -globalThis.oreui = { - main: oreui, - info: info -} document.addEventListener("DOMContentLoaded", () => { try { diff --git a/dist/libs/sounds.js b/dist/libs/sounds.js index 093b322..b12ecea 100644 --- a/dist/libs/sounds.js +++ b/dist/libs/sounds.js @@ -1,10 +1,10 @@ export const sounds = { - click: new Audio("dist/sounds/release-7c974.ogg"), - hide: new Audio("dist/sounds/modal_hide-2341f.ogg"), - pop: new Audio("dist/sounds/snes_pop-7a6d3.ogg") + click: new Audio(oreui.path + "sounds/release-7c974.ogg"), + hide: new Audio(oreui.path + "sounds/modal_hide-2341f.ogg"), + pop: new Audio(oreui.path + "sounds/snes_pop-7a6d3.ogg") } export const playSound = sound => { sound.play(); return sound; -} \ No newline at end of file +}