mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Fix blankshield.js error in Chrome 72+
https://xetown.com/topics/1218391
This commit is contained in:
parent
d873196aa8
commit
bf5f53024e
1 changed files with 4 additions and 0 deletions
|
|
@ -285,6 +285,10 @@ jQuery(function($) {
|
||||||
if (!rel.match(/\bnoopener\b/)) {
|
if (!rel.match(/\bnoopener\b/)) {
|
||||||
$this.attr('rel', $.trim(rel + ' noopener'));
|
$this.attr('rel', $.trim(rel + ' noopener'));
|
||||||
}
|
}
|
||||||
|
var isChrome = navigator.userAgent.match(/Chrome\/([0-9]+)/);
|
||||||
|
if (isChrome && parseInt(isChrome[1], 10) >= 72) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
blankshield.open(href);
|
blankshield.open(href);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue