enforce plain-text for styleInstallOverwrite

fixes #1357
This commit is contained in:
tophf 2021-12-03 15:37:47 +03:00
parent 6c13db1468
commit a59aab73fc

View File

@ -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)