diff options
Diffstat (limited to 'petrichor.js')
-rw-r--r-- | petrichor.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/petrichor.js b/petrichor.js index dd20bfe..bcb14d6 100644 --- a/petrichor.js +++ b/petrichor.js @@ -174,4 +174,18 @@ function load() { update_time(); build_session_list(); + start(); } + +/* Temporary hack until webkit greeter 3. + * The fact this is needed frankly makes me shudder. */ +function try_load() +{ + if (typeof lightdm !== 'undefined') { + load(); + } else { + setTimeout(try_load, 500); + } +} + +window.onload = try_load; |