Skip to content

Commit

Permalink
fix($ui): Initialize ui on the next tick
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard Kyvenko committed Jul 12, 2017
1 parent 91329f8 commit 7750162
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 7750162

Please sign in to comment.