javascript - Detect wake from hibernation -
is there way observe wake hibernation? developing extension displays info when user turns on computer , logs in system. can setting extension run when scheme starts , execute codes instantly.
background.js
function displayinfo(){ /*...*/ } displayinfo(); however, users might not turn off computer, rather, hibernate faster wake time. hibernate should still considered user "turning on" computer, have no way of detecting that.
is there anyway can accomplish that?
no "perfect/foolproof" method, idea:
record scheme time every 5 minutes or so. if current time much larger expected time, assume slept/hibernated. javascript google-chrome-extension
No comments:
Post a Comment