Sending notifications
The desktop app can send text messages to be displayed to the user. To do so, declare the function:
window.onSystemMessage = function onSystemMessage(e) {};
The e object has the following structure:
{
"type": "operation",
"opMessage": "Loading...",
"opType": 1
}
Example
window.onSystemMessage({type: "operation", opType: 1});
Updating file status
The desktop app can send notifications about file editing completion.
Declare the following global function:
window.DesktopUpdateFile = function DesktopUpdateFile() {};