diff --git a/frontend/frontend.js b/frontend/frontend.js index 8ac13cd..c4aaa8e 100644 --- a/frontend/frontend.js +++ b/frontend/frontend.js @@ -1,6 +1,6 @@ async function initUI() { - const server = await window.constants.getWebServerPort() - const location = `http://${server}/pages/op-module-valorant-pregame/gfx` + const server = await window.constants.getModuleURL() + const location = `${server}/gfx` const apiKey = await window.constants.getApiKey() diff --git a/package.json b/package.json index cd40a67..4e0a0ca 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "main": "dist/plugin.js" }, "needsBuild": true, + "toolkitVersion": ">=1.11", "dependencies": [ "module-valorant-state", "module-valorant-static"