if variable not declared, test if null throws error
This commit is contained in:
parent
a0aa9470a3
commit
32ba48835a
|
@ -467,7 +467,7 @@ var pad = {
|
|||
{
|
||||
var newHref = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname) || clientVars.padId;
|
||||
newHref = newHref[0];
|
||||
if (options != null){
|
||||
if (typeof options != "undefined" && options != null){
|
||||
newHref = newHref + '?' + options;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue