summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortejr <tejr@sqt.wtf>2021-01-23 14:29:04 +1300
committertejr <tejr@sqt.wtf>2021-01-23 14:34:56 +1300
commitee2053c68c50e8c0433eeb974766239a0fea3e9a (patch)
treeb290812309947262ccd717c3132e7f52ccb7d566
parentDraft now-playing bar. (diff)
downloadsoundboard-ee2053c68c50e8c0433eeb974766239a0fea3e9a.tar.gz
soundboard-ee2053c68c50e8c0433eeb974766239a0fea3e9a.zip
Correct updatenp definitionv0.1.0
>14:27:44 <tejr> kline\0: >Uncaught TypeError: updatenp is not a function >14:28:18 <tejr> kline\0: It looks like you're evaluating the function at definition time >14:28:54 <tejr> There we go >14:29:30 <kline\0> thanks
-rw-r--r--script.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/script.js b/script.js
index 493a9e5..0f02d8b 100644
--- a/script.js
+++ b/script.js
@@ -1,10 +1,10 @@
(function () {
"use strict";
window.addEventListener("load", function () {
- var updatenp = (function (filename) {
+ var updatenp = function (filename) {
var np = document.querySelector("#np");
np.textContent = filename;
- }());
+ };
var play = (function () {
var active;