aboutsummaryrefslogtreecommitdiff
path: root/static/js/posts.js
diff options
context:
space:
mode:
authorFChannel <>2021-06-28 20:09:42 -0700
committerFChannel <>2021-06-28 20:09:42 -0700
commit057c5639222dc773ff8d588ab122cc267b27c187 (patch)
treecfb3b98feb22844eea707e149657275aae377bab /static/js/posts.js
parent429ab6de683653c0ae509ba169eab768f2e3bd91 (diff)
added tor image in place of broken links. if user is using tor they just click the image to view it
Diffstat (limited to 'static/js/posts.js')
-rw-r--r--static/js/posts.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/static/js/posts.js b/static/js/posts.js
index 06aab77..79fb7c4 100644
--- a/static/js/posts.js
+++ b/static/js/posts.js
@@ -296,7 +296,12 @@ function dragElement(elmnt) {
function stripTransferProtocol(value){
var re = /(https:\/\/|http:\/\/)?(www.)?/
-
return value.replace(re, "")
}
+function isOnion(value){
+ var re = /\.onion/
+ if(value.match(re) != null)
+ return true
+ return false
+}