From 3679616c1bfcab2c78545cbeff8d9047460f01ac Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 27 Jun 2013 13:49:26 +0200 Subject: [PATCH] Don't try to toggle blanket if it's not defined. --- experiments/spclient/mkws.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index a4058a0..85472d7 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -376,12 +376,12 @@ function switchView(view) { case 'targets': targets.style.display = "block"; records.style.display = "none"; - blanket.style.display = "none"; + if (blanket) { blanket.style.display = "none"; } break; case 'records': targets.style.display = "none"; records.style.display = "block"; - blanket.style.display = "block"; + if (blanket) { blanket.style.display = "block"; } break; default: alert('Unknown view.'); -- 1.7.10.4