Skip to content

Commit

Permalink
overriding require.js waitseconds at very beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
aholachek committed Mar 15, 2016
1 parent c52a62b commit bd7ccdc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/discovery.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ require.config({
}()),


//this will be overridden in the compiled file
waitSeconds: 30,

// Configuration we want to make available to modules of ths application
Expand Down
8 changes: 8 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
</div>
</div>

<script>
// define waitSeconds above require script tag
// to override the default, until main.js loads
//see https://github.com/yeoman/yeoman/issues/1051
window.require = {
waitSeconds: 30
};
</script>

<!-- start the discovery application -->
<script data-main="./discovery.config" src="./libs/requirejs/require.js"></script>
Expand Down

0 comments on commit bd7ccdc

Please sign in to comment.