Skip to content

Commit

Permalink
Merge pull request #40 from trustpilot/fix-the-ui-toggling
Browse files Browse the repository at this point in the history
Fix the ui toggling
  • Loading branch information
halfzebra authored Jul 12, 2017
2 parents 91329f8 + 7750162 commit 74b8c53
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ const ui = uiFactory(
);

$(() => {
if (shouldShowUI()) {
ui.show();
}
setTimeout(() => {
if (shouldShowUI()) {
ui.show();
}
}, 0);
});

export {
Expand Down

0 comments on commit 74b8c53

Please sign in to comment.