mirror of
https://github.com/twisterarmy/theme_nin.git
synced 2025-02-09 21:44:16 +00:00
add workaround to deal with CSP interruption of theme_option.js
This commit is contained in:
parent
79ccb80409
commit
b008986efc
@ -11,10 +11,11 @@ $(function () {
|
|||||||
testRightSide();
|
testRightSide();
|
||||||
reOrganizeTemplates();
|
reOrganizeTemplates();
|
||||||
|
|
||||||
$.globalEval(postToElem.toString().replace(/postContext.append\(_templatePostRtBy/,
|
// indirect eval call in hope to execute code globally
|
||||||
'postContext.prependTo(postContext.parent()).append(_templatePostRtBy'));
|
(1, eval)(postToElem.toString().replace(/postContext.append\(twister\.tmpl\.postRtBy/,
|
||||||
|
'postContext.prependTo(postContext.parent()).append(twister.tmpl.postRtBy'));
|
||||||
|
|
||||||
$.globalEval(openModal.toString().replace(/window_scrollY = window\.pageYOffset;/, '')
|
(1, eval)(openModal.toString().replace(/window_scrollY = window\.pageYOffset;/, '')
|
||||||
.replace(/\$\('body'\)\.css\('overflow', 'hidden'\);/, ''));
|
.replace(/\$\('body'\)\.css\('overflow', 'hidden'\);/, ''));
|
||||||
|
|
||||||
$('.userMenu-home.current a').on('click', function () {
|
$('.userMenu-home.current a').on('click', function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user