fixed chrome focus bug

This commit is contained in:
Igor Zhukov 2014-02-10 23:33:27 +04:00
parent 7b03451f52
commit 8d86017304

View File

@ -2393,7 +2393,7 @@ angular.module('myApp.services', [])
notification.onclick = function () { notification.onclick = function () {
notification.close(); notification.close();
if (window.chrome && chrome.app) { if (window.chrome && chrome.app && chrome.app.window) {
chrome.app.window.current().focus(); chrome.app.window.current().focus();
} }
window.focus(); window.focus();