Skip to content

Commit

Permalink
fixed: make target blank js work in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Feb 24, 2020
1 parent 8c1b51b commit 9835564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/default/js/target_blank/target_blank.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ define(function(require) {
var $ = require('jquery');

var site_url = elgg.get_site_url().substring(4);
if (site_url.startsWith('s')) {
if (site_url.substring(0, 1) === 's') {
site_url = site_url.substring(1);
}

Expand Down

0 comments on commit 9835564

Please sign in to comment.