We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b801e15 commit de85ecfCopy full SHA for de85ecf
1 file changed
src/base/chat/trustedLink.js
@@ -55,10 +55,13 @@ eventManager.on('BootstrapDialog:show', (dialog) => {
55
});
56
57
eventManager.on('ChatDetected', () => {
58
+ // Add current domain to safe links
59
+ safeLinks.add(location.hostname);
60
+
61
globalSet('link', function link(l) {
62
const url = new URL(l).hostname;
- // Undercards is a safe link :D
- if (setting.value() && (url === location.hostname || safeLinks.has(url))) return true;
63
+ // Allow going to page instantly if it's marked as a safe link
64
+ if (setting.value() && safeLinks.has(url)) return true;
65
// Cache the url for later
66
cache.value = url;
67
return this.super(l);
0 commit comments