From: Andrew Dolgov Date: Mon, 2 Feb 2009 18:33:57 +0000 (+0300) Subject: init_gears: properly check whether gears is installed X-Git-Tag: 1.3.1~133 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d92d7f02ada5a6f7fbc39ae0de6811624724da29;p=tt-rss.git init_gears: properly check whether gears is installed --- 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');