OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 /** | |
6 * Global wallpaperManager reference useful for poking at from the console. | |
7 */ | |
8 var wallpaperManager; | |
flackr
2012/07/04 22:20:57
Initialized elsewhere?
bshe
2012/07/05 13:54:50
Aha. Sorry. The initiazlier is in a script file wh
| |
9 | |
10 function init() { | |
11 var windowStateManager = | |
12 chrome.extension.getBackgroundPage().windowStateManager; | |
13 windowStateManager.saveStates(); | |
14 window.addEventListener('unload', | |
15 windowStateManager.restoreStates.bind(windowStateManager)); | |
16 } | |
17 | |
18 document.addEventListener('DOMContentLoaded', init); | |
OLD | NEW |