Files
Sam Thorogood 8af19b8ca9 move
2020-12-04 09:18:01 +11:00

28 lines
643 B
JavaScript
Executable File

onload = function() {
function update() {
['screenX', 'screenY', 'innerWidth', 'innerHeight'].forEach(function(prop) {
document.getElementById(prop).innerText = window[prop];
});
webkitRequestAnimationFrame(update);
}
update();
var minimizeNode = document.getElementById('minimize-button');
if (minimizeNode) {
minimizeNode.onclick = function() {
chrome.runtime.getBackgroundPage(function(background) {
background.minimizeAll();
});
};
}
var closeNode = document.getElementById('close');
if (closeNode) {
closeNode.onclick = function() {
window.close();
};
}
}