diff options
author | FChannel <> | 2021-06-28 20:09:42 -0700 |
---|---|---|
committer | FChannel <> | 2021-06-28 20:09:42 -0700 |
commit | 057c5639222dc773ff8d588ab122cc267b27c187 (patch) | |
tree | cfb3b98feb22844eea707e149657275aae377bab /static/js/posts.js | |
parent | 429ab6de683653c0ae509ba169eab768f2e3bd91 (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.js | 7 |
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 +} |