mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +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/)) {
|
||||
$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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue