removed addNoReferrer usage as it is done server-side now

This commit is contained in:
Julian Lam
2018-02-20 16:42:13 -05:00
parent 7edc58b727
commit 964fd20213
2 changed files with 0 additions and 15 deletions

View File

@@ -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;

View File

@@ -58,7 +58,6 @@
title: $(this).attr('title'),
});
});
utils.addNoReferrer(widgetAreas);
$(window).trigger('action:widgets.loaded', {});
callback();
};