diff options
| author | Teddy Wing | 2019-05-01 18:43:21 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2019-05-01 18:43:21 +0200 | 
| commit | e9fa4200e3d27c14bbf8e020a8c70d0f806a2ad6 (patch) | |
| tree | 22700c775517a7cf0e2e737d5d56e4f576b3ac89 /src/sidebar.ts | |
| parent | 496ac03b0d6afb28db09998eb9944db2102ad49e (diff) | |
| download | muttagen-e9fa4200e3d27c14bbf8e020a8c70d0f806a2ad6.tar.bz2 | |
index.ts: Better Gmail loading initialisation logic
Instead of using a timeout, which may get executed prematurely, check
for the visibility of Gmail's `loading` screen. When it disappears from
view, we know we can safely initialise all our plugin features.
This allows us to, for example, try to ensure our `<style>` element gets
appended last. Now the sidebar actually gets hidden with our CSS rule
from 496ac03b0d6afb28db09998eb9944db2102ad49e since it can take
precedence over Gmail's asynchronously-loaded styles.
Diffstat (limited to 'src/sidebar.ts')
0 files changed, 0 insertions, 0 deletions
