summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/dynamic.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/dynamic.js b/js/dynamic.js
index 08a7375..0e6fc0c 100644
--- a/js/dynamic.js
+++ b/js/dynamic.js
@@ -1,6 +1,6 @@
jQuery(function($) {
// Append ?print to the URL to trigger print preview mode
- if (location.href.split('?')[1].indexOf('print') > -1) {
+ if ((location.href.split('?')[1] || '').indexOf('print') > -1) {
$('link[media=print]').attr('media', '');
}