Fix blankshield.js error in Chrome 72+

https://xetown.com/topics/1218391
This commit is contained in:
Kijin Sung 2019-05-13 17:33:25 +09:00
parent d873196aa8
commit bf5f53024e

View file

@ -285,6 +285,10 @@ jQuery(function($) {
if (!rel.match(/\bnoopener\b/)) {
$this.attr('rel', $.trim(rel + ' noopener'));
}
var isChrome = navigator.userAgent.match(/Chrome\/([0-9]+)/);
if (isChrome && parseInt(isChrome[1], 10) >= 72) {
return;
}
event.preventDefault();
blankshield.open(href);
}