|
|
|
|
|
|
124
|
// FIXME Turn location's host, hostname, and port properties into
|
124
|
// FIXME Turn location's host, hostname, and port properties into
|
|
125
|
// setters in order to reduce the risks of inconsistent state.
|
125
|
// setters in order to reduce the risks of inconsistent state.
|
|
126
|
location.hostname = defaultLocation.hostname;
|
126
|
location.hostname = defaultLocation.hostname;
|
|
|
|
127
|
+ location.pathname
|
|
|
|
128
|
+ = defaultLocation.pathname + location.pathname.substr(1);
|
|
127
|
location.port = defaultLocation.port;
|
129
|
location.port = defaultLocation.port;
|
|
128
|
location.protocol = defaultLocation.protocol;
|
130
|
location.protocol = defaultLocation.protocol;
|
|
129
|
} else {
|
131
|
} else {
|