summaryrefslogtreecommitdiff
path: root/src/static/js/pad.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/pad.js')
-rw-r--r--src/static/js/pad.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/pad.js b/src/static/js/pad.js
index e820b76f..6ee39b6b 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;
}