]> git.wh0rd.org Git - tt-rss.git/commitdiff
init_gears: properly check whether gears is installed
authorAndrew Dolgov <fox@bah.org.ru>
Mon, 2 Feb 2009 18:33:57 +0000 (21:33 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Mon, 2 Feb 2009 18:33:57 +0000 (21:33 +0300)
tt-rss.js

index 1dd79c5f727c6339a1aef45569af5a2df3e01d96..24c80435b3c133c4c102911c88b97eb7c6d7cc65 100644 (file)
--- 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');