From caaf01ccedabee5b6bd96bfb6e9ca5cf7fd56c54 Mon Sep 17 00:00:00 2001 From: OpenIhu Date: Mon, 30 May 2022 10:38:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E4=B8=8B=E6=9D=A5=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_src/js/index.js b/web_src/js/index.js index f3f25c03a..ac492c36a 100755 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -3967,7 +3967,7 @@ function initVueDataset() { }, methods: { copyUrl(url) { - const cInput = document.createElement('input') + const cInput = document.createElementNS('input') cInput.value = url document.body.appendChild(cInput) cInput.select() @@ -4915,7 +4915,7 @@ window.onOAuthLoginClick = function () { // Pull SVGs via AJAX to workaround CORS issues with tags // https://css-tricks.com/ajaxing-svg-sprite/ $.get(`${window.config.StaticUrlPrefix}/img/svg/icons.svg`, (data) => { - const div = document.createElement('div'); + const div = document.createElementNS('div'); div.style.display = 'none'; div.innerHTML = new XMLSerializer().serializeToString(data.documentElement); document.body.insertBefore(div, document.body.childNodes[0]);