From f76e583e910f9d399192c234c953d2dbb639a2b8 Mon Sep 17 00:00:00 2001 From: Himyu Date: Tue, 5 Nov 2024 16:52:55 +0100 Subject: [PATCH] implement new link methods in frontend --- frontend/frontend.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/frontend.js b/frontend/frontend.js index 520bb34..c632517 100644 --- a/frontend/frontend.js +++ b/frontend/frontend.js @@ -240,8 +240,8 @@ function initSettings(settings) { let server = '' LPTE.onready(async () => { - server = await window.constants.getWebServerPort() - const location = `${window.location.protocol}//${server}/pages/op-module-league-in-game/gfx` + server = await window.constants.getModuleURL() + const location = `${server}/gfx` const apiKey = await window.constants.getApiKey() diff --git a/package.json b/package.json index b63c791..eef06ac 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "main": "dist/plugin.js" }, "needsBuild": true, - "toolkitVersion": ">=1.8", + "toolkitVersion": ">=1.11", "dependencies": [ "module-league-state", "module-league-static"