summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorNatalie Downe <nat@natbat.net>2009-05-21 18:28:01 +0100
committerNatalie Downe <nat@natbat.net>2009-05-21 18:28:01 +0100
commitd5eaacc7638511e5e524fbf58a2c38b989f76304 (patch)
tree38e05d00574d8312909056b025aeb9fdac89294e /js
parent495f0ef610b08d8f3e3c6e9f6179a2f1dce41f74 (diff)
Fix JS bug when no print styles requested
Diffstat (limited to 'js')
-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', '');
}