From d5eaacc7638511e5e524fbf58a2c38b989f76304 Mon Sep 17 00:00:00 2001 From: Natalie Downe Date: Thu, 21 May 2009 18:28:01 +0100 Subject: Fix JS bug when no print styles requested --- js/dynamic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', ''); } -- cgit v1.2.3