mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
26 lines
759 B
JavaScript
26 lines
759 B
JavaScript
// Called by the common.js module.
|
|
function attachListeners() {
|
|
document.getElementById('startButton').addEventListener('click', startPushed);
|
|
document.getElementById('stopButton').addEventListener('click', stopPushed);
|
|
}
|
|
|
|
function getGFEHostIPField() {
|
|
return document.getElementById('GFEHostIPField');
|
|
}
|
|
|
|
function startPushed() {
|
|
common.naclModule.postMessage('setGFEHostIPField:' + getGFEHostIPField().value);
|
|
//common.naclModule.postMessage('startPushed');
|
|
}
|
|
|
|
function stopPushed() {
|
|
common.naclModule.postMessage('stopPushed');
|
|
}
|
|
|
|
// Called by the common.js module.
|
|
function handleMessage(msg) {
|
|
var logEl = document.getElementById('GFEHostIPField');
|
|
logEl.value = msg.data;
|
|
}
|
|
|
|
// chrome.app.window.current().fullscreen();
|