Browse Source

fix build errors

sisyphus
Dustin Falgout 9 years ago
parent
commit
3d05358685
  1. 2
      src/lightdm-webkit2-greeter.c
  2. 6
      themes/antergos/js/greeter.js

2
src/lightdm-webkit2-greeter.c

@ -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) {

6
themes/antergos/js/greeter.js

@ -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);
}

Loading…
Cancel
Save