Skip to content

Commit

Permalink
Merge pull request #4946 from emberjs/gracefull-fallback
Browse files Browse the repository at this point in the history
dummy app routes should work with and without heimdall
  • Loading branch information
stefanpenner authored Apr 26, 2017
2 parents 347a98f + 14d4627 commit 92e48c4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/dummy/app/routes/query/route.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
/* global window, heimdall, console */
import Ember from 'ember';

// fallback if no-heimdall happens to be present when loading the dummy app
let heimdall = self.heimdall;
if (typeof heimdall !== 'object') {
heimdall = {
start() { },
stop() { }
};
}


const {
Route
} = Ember;
Expand Down

0 comments on commit 92e48c4

Please sign in to comment.