summaryrefslogtreecommitdiff
path: root/js/common.js
diff options
context:
space:
mode:
authorsupahgreg <supahgreg@users.noreply.github.com>2025-10-14 23:22:00 +0000
committersupahgreg <supahgreg@users.noreply.github.com>2025-10-14 23:23:01 +0000
commitf85559735b794682057e5b8d3854373f4d10dbb9 (patch)
treea4622a6d572deca239cb562f0f2d78ad6e2c1565 /js/common.js
parent6bd52b28c201c2afb43397c1413000d47563da0b (diff)
Remove 'App.byId()', which was essentially an alias of 'document.getElementById()'.
Diffstat (limited to 'js/common.js')
-rwxr-xr-xjs/common.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/js/common.js b/js/common.js
index 2d5e63f44..0d70332aa 100755
--- a/js/common.js
+++ b/js/common.js
@@ -16,12 +16,6 @@ function ngettext(msg1, msg2, n) {
return __((parseInt(n) > 1) ? msg2 : msg1);
}
-/* exported $ */
-function $(id) {
- console.warn("FIXME: please use App.byId() or document.getElementById() instead of $():", id);
- return document.getElementById(id);
-}
-
// polyfill for safari https://raw.githubusercontent.com/pladaria/requestidlecallback-polyfill/master/index.js
window.requestIdleCallback =
window.requestIdleCallback ||
@@ -364,7 +358,7 @@ const Notify = {
kind = kind || this.KIND_GENERIC;
keep = keep || false;
- const notify = App.byId("notify");
+ const notify = document.getElementById("notify");
window.clearTimeout(this.timeout);