aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2024-01-06 19:16:12 -0500
committerThedro Neely <thedroneely@gmail.com>2024-01-06 19:16:12 -0500
commitb0feb62a0bbb5987fe37ab8bc26503c3dd812d84 (patch)
tree9d3cb03bb57cc909cc55a114b2680d6f84d3e439 /public
parent6d745f1e8c7b870524e01ee7a4886db38634e2ae (diff)
downloadthedroneely.com-b0feb62a0bbb5987fe37ab8bc26503c3dd812d84.tar.gz
thedroneely.com-b0feb62a0bbb5987fe37ab8bc26503c3dd812d84.tar.bz2
thedroneely.com-b0feb62a0bbb5987fe37ab8bc26503c3dd812d84.zip
public/js/app: Remove CSP violations
Diffstat (limited to 'public')
-rw-r--r--public/js/app.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js
index 0d540ce..d26d3e8 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -43,6 +43,17 @@ self.addEventListener('DOMContentLoaded', function() {
localStorage['pager'] = JSON.stringify(pager);
})();
+ (function() {
+ var imageAnchors = document.querySelectorAll("a");
+ for(var i = 0; i < imageAnchors.length; i++){
+ if (imageAnchors[i].firstElementChild) {
+ if (imageAnchors[i].firstElementChild.tagName === "IMG") {
+ imageAnchors[i].removeAttribute("href");
+ }
+ }
+ }
+ })();
+
/**
* Scroll events
*/