@ -216,7 +216,7 @@ message_received_cb(WebKitUserContentManager *manager,
message_str = "";
printf("Error running javascript: unexpected return value");
}
quit
if (strcmp(message_str, "LockHint") == 0) {
lock_hint_enabled_handler();
} else if (strcmp(message_str, "Heartbeat") == 0) {
@ -82,9 +82,15 @@ class AntergosThemeUtils {
initialize_theme_heartbeat() {
var heartbeats = 0;
this.log('Initializing theme heartbeat.');
this.heartbeat = setInterval(() => {
++heartbeats;
window.webkit.messageHandlers.GreeterBridge.postMessage('Heartbeat');
if (heartbeats < 20) {
console.log('Sending heartbeat...');
}, 5000);