diff --git a/.github/dependabot.yml b/.github/dependabot.yml index afe0929b..999f8941 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,6 +11,9 @@ updates: schedule: interval: "weekly" target-branch: dev + # Add assignees + assignees: + - "AlterTobi" # Maintain dependencies for npm - package-ecosystem: "npm" @@ -18,6 +21,8 @@ updates: schedule: interval: "weekly" target-branch: dev + assignees: + - "AlterTobi" # - package-ecosystem: "" # See documentation for possible values # directory: "/" # Location of package manifests diff --git a/templates/wfes-template.js b/templates/wfes-template.js index 2695510b..04a1d7eb 100644 --- a/templates/wfes-template.js +++ b/templates/wfes-template.js @@ -15,6 +15,7 @@ function myTemplate() { window.wfes.f.addCSS(myCssId, myStyle); // YOUR CODE HERE + // .catch((e) => {console.warn(GM_info.script.name, ": ", e);}); } window.addEventListener("WFESHomePageLoaded", myTemplate); diff --git a/wfes-Base.js b/wfes-Base.js index 40ca0f4e..ef0b4225 100644 --- a/wfes-Base.js +++ b/wfes-Base.js @@ -1,5 +1,5 @@ // @name Base -// @version 2.2.1 +// @version 2.2.2 // @description basic functionality for WFES // @author AlterTobi // @run-at document-start @@ -422,11 +422,19 @@ } function nominationsClickHander(elem) { const nomItem = elem.target.closest("app-submissions-list-item"); - window.setTimeout(loadCachedNomination, 250, nomItem); + if (nomItem) { + window.setTimeout(loadCachedNomination, 250, nomItem); + } else { + console.warn(GM_info.script.name, ": app-submissions-list-item missing"); + } } function addNominationsClickHandler() { const nomList = document.getElementsByTagName("app-submissions-list")[0]; - nomList.addEventListener("click", nominationsClickHander); + if (nomList) { + nomList.addEventListener("click", nominationsClickHander); + } else { + console.warn(GM_info.script.name, ": app-submissions-list missing"); + } } window.addEventListener("WFESNominationListLoaded", addNominationsClickHandler); /* ================ /nomination page ============== */