From d92d7f02ada5a6f7fbc39ae0de6811624724da29 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 2 Feb 2009 21:33:57 +0300 Subject: [PATCH] init_gears: properly check whether gears is installed --- tt-rss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tt-rss.js b/tt-rss.js index 1dd79c5f..24c80435 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -1479,7 +1479,7 @@ function feedBrowserSubscribe() { function init_gears() { try { - if (google.gears) { + if (window.google && google.gears) { localServer = google.gears.factory.create("beta.localserver"); store = localServer.createManagedStore("tt-rss"); db = google.gears.factory.create('beta.database'); -- 2.39.5