From 8d860173049540e7a1083c231f91dc52a7785bc1 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 10 Feb 2014 23:33:27 +0400 Subject: [PATCH] fixed chrome focus bug --- app/js/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/services.js b/app/js/services.js index e21bf5e8..14a291c0 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -2393,7 +2393,7 @@ angular.module('myApp.services', []) notification.onclick = function () { notification.close(); - if (window.chrome && chrome.app) { + if (window.chrome && chrome.app && chrome.app.window) { chrome.app.window.current().focus(); } window.focus();