From a3b224ed6c882c621199204377cdbd360ba61de9 Mon Sep 17 00:00:00 2001 From: pypy Date: Sun, 12 Jan 2020 22:16:17 +0900 Subject: [PATCH] cleanup code --- html/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/app.js b/html/app.js index 49e1a487..277620dd 100644 --- a/html/app.js +++ b/html/app.js @@ -195,7 +195,7 @@ CefSharp.BindObjectAsync( var $appDarkStyle = document.createElement('link'); $appDarkStyle.rel = 'stylesheet'; $appDarkStyle.href = `app.dark.css?_=${Date.now()}`; - document.getElementsByTagName('head')[0].appendChild($appDarkStyle); + document.head.appendChild($appDarkStyle); // // API