Skip to content

Commit

Permalink
add update call to ensure screensaver is focused
Browse files Browse the repository at this point in the history
  • Loading branch information
opus1269 committed Sep 13, 2015
1 parent 4e0aa10 commit ee14078
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function processState(key) {
// create the screen saver window
window.showScreenSaver = function () {
if(getChromeVersion() >= 44) {
// one step creation - chrome 44 and later
// use fullscreen option in create call - chrome 44 and later
chrome.windows.create({
url: 'screensaver.html',
focused: true,
Expand All @@ -120,6 +120,7 @@ window.showScreenSaver = function () {
},
function (win) {
localStorage.windowID = win.id;
chrome.windows.update(win.id, { focused: true });
});
}
else {
Expand Down

0 comments on commit ee14078

Please sign in to comment.