From a59aab73fc1de64079b4680daf3e959b049e72e3 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 3 Dec 2021 15:37:47 +0300 Subject: [PATCH] enforce plain-text for styleInstallOverwrite fixes #1357 --- install-usercss/install-usercss.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-usercss/install-usercss.js b/install-usercss/install-usercss.js index 6c79a9fd..4c8ff926 100644 --- a/install-usercss/install-usercss.js +++ b/install-usercss/install-usercss.js @@ -105,11 +105,11 @@ setTimeout(() => !cm && showSpinner($('#header')), 200); $('button.install').onclick = () => { (!dup ? Promise.resolve(true) : - messageBox.confirm(t('styleInstallOverwrite', [ + messageBox.confirm($create('span', t('styleInstallOverwrite', [ data.name + (dup.customName ? ` (${dup.customName})` : ''), dupData.version, data.version, - ])) + ]))) ).then(ok => ok && API.usercss.install(style) .then(install)