From 67526591668b6a164560030f2924aeab29541eba Mon Sep 17 00:00:00 2001 From: dcore94 Date: Thu, 4 Jul 2024 13:32:03 +0200 Subject: [PATCH] moved boot query to connectcallback --- extapp/js/rolescontroller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extapp/js/rolescontroller.js b/extapp/js/rolescontroller.js index d58645d..2b7b01d 100644 --- a/extapp/js/rolescontroller.js +++ b/extapp/js/rolescontroller.js @@ -16,14 +16,14 @@ class ExtAppRoleController extends HTMLElement{ constructor(){ super() - this.#boot = document.querySelector("d4s-boot-2") - this.#serviceurl = this.#boot.url this.attachShadow({ mode: "open" }); } connectedCallback(){ this.#appid = this.getAttribute("appid") this.#groupid = this.getAttribute("groupid") + this.#boot = document.querySelector("d4s-boot-2") + this.#serviceurl = this.#boot.url if(!this.#loading){ this.#loading = true this.loadData()