diff --git a/src/static/js/pad.js b/src/static/js/pad.js index e820b76fe..6ee39b6b7 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -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; }