mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
if variable not declared, test if null throws error
This commit is contained in:
parent
a0aa9470a3
commit
32ba48835a
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ var pad = {
|
||||||
{
|
{
|
||||||
var newHref = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname) || clientVars.padId;
|
var newHref = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname) || clientVars.padId;
|
||||||
newHref = newHref[0];
|
newHref = newHref[0];
|
||||||
if (options != null){
|
if (typeof options != "undefined" && options != null){
|
||||||
newHref = newHref + '?' + options;
|
newHref = newHref + '?' + options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue