mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
BUGFIX #47: Replaced 'const' declarations with 'var' to fix iOS incompatibilities.
This commit is contained in:
parent
216d8f1f7a
commit
4d131c921a
9 changed files with 27 additions and 27 deletions
|
@ -70,7 +70,7 @@ var URL_ = {
|
|||
if (a.port) output += "Port:\t\t" + a.port + "\n";
|
||||
}
|
||||
|
||||
if (a.pathname) {
|
||||
if (a.pathname && a.pathname !== window.location.pathname) {
|
||||
var pathname = a.pathname;
|
||||
if (pathname.indexOf(window.location.pathname) === 0)
|
||||
pathname = pathname.replace(window.location.pathname, "");
|
||||
|
@ -78,11 +78,11 @@ var URL_ = {
|
|||
output += "Path name:\t" + pathname + "\n";
|
||||
}
|
||||
|
||||
if (a.hash) {
|
||||
if (a.hash && a.hash !== window.location.hash) {
|
||||
output += "Hash:\t\t" + a.hash + "\n";
|
||||
}
|
||||
|
||||
if (a.search) {
|
||||
if (a.search && a.search !== window.location.search) {
|
||||
output += "Arguments:\n";
|
||||
var args_ = (a.search.slice(1, a.search.length)).split("&");
|
||||
var split_args = [], padding = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue