init_gears: properly check whether gears is installed

This commit is contained in:
Andrew Dolgov 2009-02-02 21:33:57 +03:00
parent e0999d95c3
commit d92d7f02ad
1 changed files with 1 additions and 1 deletions

View File

@ -1479,7 +1479,7 @@ function feedBrowserSubscribe() {
function init_gears() { function init_gears() {
try { try {
if (google.gears) { if (window.google && google.gears) {
localServer = google.gears.factory.create("beta.localserver"); localServer = google.gears.factory.create("beta.localserver");
store = localServer.createManagedStore("tt-rss"); store = localServer.createManagedStore("tt-rss");
db = google.gears.factory.create('beta.database'); db = google.gears.factory.create('beta.database');