From eb191254b07f35ce39434d0131b7af3927db40d4 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 13 Feb 2022 22:06:35 +0000 Subject: [PATCH] More use strict. Less Notification.requestPermission(). git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3839 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/client.js | 3 --- core/form.js | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/client.js b/core/client.js index deaa8eac..4ec19653 100644 --- a/core/client.js +++ b/core/client.js @@ -823,9 +823,6 @@ function removeFile() { } window.addEventListener("load", function() { - if (window.Notification) { - Notification.requestPermission(); - } window.addEventListener("hashchange", hashChange); window.addEventListener("focus", focus); window.addEventListener("blur", blur); diff --git a/core/form.js b/core/form.js index 4cba9bec..4849f0f2 100644 --- a/core/form.js +++ b/core/form.js @@ -1,3 +1,5 @@ +"use strict"; + function decode(encoded) { var result = ""; for (var i = 0; i < encoded.length; i++) {