Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lots0logs committed Apr 19, 2016
1 parent ab0f1ea commit 3d05358
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lightdm-webkit2-greeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 6 additions & 0 deletions themes/antergos/js/greeter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 3d05358

Please sign in to comment.