Skip to content

Commit

Permalink
feat: Add an initialization event that triggers after init() is finis…
Browse files Browse the repository at this point in the history
…hed (#158)
  • Loading branch information
yichunk authored and brandonocasey committed Aug 13, 2019
1 parent b2ee794 commit 3c57c23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ class VR extends Plugin {
window.addEventListener('vrdisplaydeactivate', this.handleVrDisplayDeactivate_, true);

this.initialized_ = true;
this.trigger('initialized');
}

addCardboardButton_() {
Expand Down

0 comments on commit 3c57c23

Please sign in to comment.