Skip to content

Commit

Permalink
fix(web): 🐛 extract inline tpl redirect script to not be blocked by csp
Browse files Browse the repository at this point in the history
  • Loading branch information
collinbarrett committed Jan 24, 2021
1 parent 4be1823 commit 44bae63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions web/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
<![endif]-->

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

<link
rel="shortcut icon"
Expand Down
3 changes: 3 additions & 0 deletions web/public/tpl-redirect.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if (window.navigator.msPointerEnabled) {
window.location = "https://filterlists.com/tpl.html";
}

0 comments on commit 44bae63

Please sign in to comment.