diff --git a/lib/browser.js b/lib/browser.js index 4784a98..17a13b4 100644 --- a/lib/browser.js +++ b/lib/browser.js @@ -1,5 +1,7 @@ if (process.title === 'browser') { - const App = require('derby/App').App; + const AppModule = require('derby/App'); + // AppForClient introduced in derby@4 + const App = AppModule.AppForClient || AppModule.App; App.prototype._views = function () { const appName = this.name;