Skip to content

Commit

Permalink
Change run_at document_end (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
tilfin authored Oct 31, 2023
1 parent d3157f7 commit 31dbab5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"js": [
"js/content.js"
],
"run_at": "document_idle"
"run_at": "document_end"
}
],
"options_ui": {
Expand Down
4 changes: 3 additions & 1 deletion src/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ function setupMessageListener(metaASE) {
if (document.body) {
const metaASE = document.getElementById('awsc-signin-endpoint');
if (metaASE) {
adjustDisplayNameColor();
appendAESR();
setupMessageListener(metaASE);
setTimeout(() => {
adjustDisplayNameColor();
}, 1000);
}
}

0 comments on commit 31dbab5

Please sign in to comment.