VulpesOS/gaia/apps/callscreen/js/index.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

24 lines
608 B
JavaScript
Executable file

'use strict';
/* globals CallsHandler, CallScreen,
KeypadManager */
/**
* Function invoked at onload time to initialize the application.
*/
function onLoadCallScreen(evt) {
window.removeEventListener('load', onLoadCallScreen);
CallsHandler.setup();
CallScreen.init();
KeypadManager.init(/* oncall */ true);
}
/**
* Dummy function introduced in bug 1083729, see below.
*/
function unloadCallScreen(evt) { }
window.addEventListener('load', onLoadCallScreen);
// Bug 1083729: add an empty unload event listener to circumvent bug 1078448.
window.addEventListener('unload', unloadCallScreen);