From 3f0fcd4e52cde36b396eed55011c0722e9307f66 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 20 Nov 2017 13:21:14 -0500 Subject: [PATCH] fix cross-origin permission issue in notif. bar --- src/notification/bar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notification/bar.js b/src/notification/bar.js index 52f0bd69da..9f4258cf36 100644 --- a/src/notification/bar.js +++ b/src/notification/bar.js @@ -5,8 +5,7 @@ document.addEventListener('DOMContentLoaded', function () { setTimeout(load, 50); function load() { - var content = document.getElementById('content'), - closeButton = document.getElementById('close-button'), + var closeButton = document.getElementById('close-button'), body = document.querySelector('body'), bodyRect = body.getBoundingClientRect(); @@ -82,6 +81,7 @@ document.addEventListener('DOMContentLoaded', function () { } function setContent(element) { + const content = document.getElementById('content'); while (content.firstChild) { content.removeChild(content.firstChild); }