Skip to content

Commit

Permalink
fix: check for new ui session feature
Browse files Browse the repository at this point in the history
  • Loading branch information
janvennemann committed Jul 23, 2020
1 parent a18322a commit 168e7cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/index.js
Expand Up @@ -64,7 +64,13 @@ global.Backbone = Alloy.Backbone;
${content}
Alloy.createController('index');`;
Ti.UI.addEventListener('sessionbegin', function () {
Alloy.createController('index');
});
if ((typeof Ti.UI.hasSession === 'undefined') || Ti.UI.hasSession) {
Alloy.createController('index');
}`;

let map;
if (inputSourceMap) {
Expand Down

0 comments on commit 168e7cd

Please sign in to comment.