From 2342cc50e9b93c27207d37c8b4893868583e5a79 Mon Sep 17 00:00:00 2001 From: eight Date: Tue, 12 Sep 2017 23:19:55 +0800 Subject: [PATCH] fixup! Fix: rewrite loadScript, merge onDOMscripted, injectCSS, injectScript --- js/dom.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/js/dom.js b/js/dom.js index b94a3d98..20d3a749 100644 --- a/js/dom.js +++ b/js/dom.js @@ -80,18 +80,6 @@ function onDOMready() { } -function injectCSS(url) { - if (!url) { - return; - } - document.head.appendChild($element({ - tag: 'link', - rel: 'stylesheet', - href: url - })); -} - - function scrollElementIntoView(element) { // align to the top/bottom of the visible area if wasn't visible const bounds = element.getBoundingClientRect();