Skip to content

Commit

Permalink
Merge pull request #104 from AlterTobi/dev
Browse files Browse the repository at this point in the history
merge Dev into Main
  • Loading branch information
AlterTobi authored Jun 3, 2024
2 parents b3d45f8 + a4a420b commit e626ced
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ updates:
schedule:
interval: "weekly"
target-branch: dev
# Add assignees
assignees:
- "AlterTobi"

# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
target-branch: dev
assignees:
- "AlterTobi"

# - package-ecosystem: "" # See documentation for possible values
# directory: "/" # Location of package manifests
Expand Down
1 change: 1 addition & 0 deletions templates/wfes-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
14 changes: 11 additions & 3 deletions wfes-Base.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 ============== */
Expand Down

0 comments on commit e626ced

Please sign in to comment.