Skip to content

Commit 44bae63

Browse files
committed
fix(web): 🐛 extract inline tpl redirect script to not be blocked by csp
1 parent 4be1823 commit 44bae63

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

web/public/index.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111
<![endif]-->
1212

1313
<!-- For IE > 9 -->
14-
<script type="text/javascript">
15-
if (window.navigator.msPointerEnabled) {
16-
window.location = "https://filterlists.com/tpl.html";
17-
}
18-
</script>
14+
<script src="tpl-redirect.js"></script>
1915

2016
<link
2117
rel="shortcut icon"

web/public/tpl-redirect.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if (window.navigator.msPointerEnabled) {
2+
window.location = "https://filterlists.com/tpl.html";
3+
}

0 commit comments

Comments
 (0)