From 74340c66d62f9e12739e6111f1c6646beb08a847 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 14 Dec 2020 18:41:07 +0530 Subject: [PATCH] use inline styles to prevent leaking css --- customize.dist/loading.js | 4 ---- www/common/common-ui-elements.js | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/customize.dist/loading.js b/customize.dist/loading.js index 091ed9ad8..6e4781aaf 100644 --- a/customize.dist/loading.js +++ b/customize.dist/loading.js @@ -254,10 +254,6 @@ button:not(.btn).primary:hover{ background-color: rgb(52, 118, 162); } -nav { - text-align: right; -} - */}).toString().slice(14, -3); var urlArgs = window.location.href.replace(/^.*\?([^\?]*)$/, function (all, x) { return x; }); var elem = document.createElement('div'); diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 8fcb9b194..93b9e3648 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2552,7 +2552,9 @@ define([ var block = h('div#cp-loading-burn-after-reading', [ info, - h('nav', button), + h('nav', { + style: 'text-align: right' + }, button), ]); UI.errorLoadingScreen(block); };