Skip to content

Commit

Permalink
Rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
nolze committed Sep 6, 2020
1 parent 9686656 commit 58ef500
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49712,10 +49712,19 @@ app.oninit = function (vnode) {
} else {
app.config = app.config || new app.Config({ token: getToken() });
app.vm.init();
var name = m.route.get().substr(1).replace(/\?.*$/, '');
app.vm.page.name(name);
document.title = name;
app.renderPage(name);
var name = m.route.get();
// TODO: Fix dirty hack
// https://www.dropbox.com/developers/documentation/http/documentation
// says [REDIRECT_URI]#access_token=ABCDEFG&token_type=...
// while Mithrill returns access_token... for m.route.get() for some reason
if (name.startsWith('access_token')) {
location.href = '/?/HomePage';
} else {
name = name.substr(1).replace(/\?.*$/, '');
app.vm.page.name(name);
document.title = name;
app.renderPage(name);
}
}
};

Expand Down

0 comments on commit 58ef500

Please sign in to comment.