Skip to content

Commit

Permalink
minify
Browse files Browse the repository at this point in the history
  • Loading branch information
bnu committed Jun 4, 2018
1 parent 5cb19bf commit 325ebcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions common/js/xe.js
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ if(typeof window.XE == "undefined") {
isSameHost: function(url) {
if(typeof url != "string") return false;

var target_url = global.XE.URI(url).normalizePathname();
var target_url = global.XE.URI(url).normalizeHostname().normalizePort().normalizePathname();
if(target_url.is('urn')) return false;

var port = [Number(global.http_port) || 80, Number(global.https_port) || 443];
Expand All @@ -1142,7 +1142,7 @@ if(typeof window.XE == "undefined") {
}

if(!base_url) {
base_url = global.XE.URI(global.request_uri).normalizePathname();
base_url = global.XE.URI(global.request_uri).normalizeHostname().normalizePort().normalizePathname();
base_url = base_url.hostname() + base_url.directory();
}
target_url = target_url.hostname() + target_url.directory();
Expand Down
2 changes: 1 addition & 1 deletion common/js/xe.min.js

Large diffs are not rendered by default.

0 comments on commit 325ebcb

Please sign in to comment.