From 964fd20213429bc6ce8225e620d739386b3fde1f Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 20 Feb 2018 16:42:13 -0500 Subject: [PATCH] removed addNoReferrer usage as it is done server-side now --- public/src/utils.js | 14 -------------- public/src/widgets.js | 1 - 2 files changed, 15 deletions(-) diff --git a/public/src/utils.js b/public/src/utils.js index 77c90c4fd9..7443a0ff8a 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -553,20 +553,6 @@ return str.toString().replace(escapeChars, replaceChar); }, - addNoReferrer: function (containerEl) { - containerEl.find('a').attr('rel', function (idx, value) { - value = value ? value.split(' ') : []; - - ['noopener', 'noreferrer'].forEach(function (property) { - if (value.indexOf(property) === -1) { - value.push(property); - } - }); - - return value.join(' '); - }); - }, - isAndroidBrowser: function () { // http://stackoverflow.com/questions/9286355/how-to-detect-only-the-native-android-browser var nua = navigator.userAgent; diff --git a/public/src/widgets.js b/public/src/widgets.js index 8123e18103..badc55c892 100644 --- a/public/src/widgets.js +++ b/public/src/widgets.js @@ -58,7 +58,6 @@ title: $(this).attr('title'), }); }); - utils.addNoReferrer(widgetAreas); $(window).trigger('action:widgets.loaded', {}); callback(); };