Skip to content

Commit a337ca4

Browse files
committed
removeAttr doesn't exist; triggered catch.
1 parent 8dbcf33 commit a337ca4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/js/wp-accessibility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
let url = new URL( href );
261261
let hostname = url.hostname;
262262
if ( ! hostname.includes( 'facebook' ) ) {
263-
el.removeAttr( 'target' );
263+
el.removeAttribute( 'target' );
264264
targetRemoved++;
265265
}
266266
} catch (exception) {

0 commit comments

Comments
 (0)