Skip to content

Commit

Permalink
Merge pull request #113 from mitmedialab/oauth
Browse files Browse the repository at this point in the history
Integrate OAuth authentication instead of Persona, recommendation system changes
  • Loading branch information
kanarinka committed May 1, 2017
2 parents 149c7a6 + 5e682b8 commit 0e02e99
Show file tree
Hide file tree
Showing 19 changed files with 1,643 additions and 1,597 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,8 @@ analysis/Download_ExportCityClicks_07172014,json
analysis/Download_ExportCityClicks_07172014.json

analysis/images/cityclicks.png

www/venv/*


HANDY_SNIPPETS.txt
262 changes: 0 additions & 262 deletions HANDY_SNIPPETS.txt

This file was deleted.

12 changes: 5 additions & 7 deletions extension/app.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
App = {

config: {
debug: true
},

initialize: function (cityID, isRandomCity) {
App.debug('App.initialize()');
App.instance = this;

/*
From the extension.config.js
*/
App.serverURL = SERVER_URL;
App.loginURL = LOGIN_URL;

this.router = new App.Router({"cityID":cityID, "isRandomCity":isRandomCity})
this.router.navigate('');
Backbone.history.start();
App.log
},

debug: function (message) {
if (App.config.debug) {
console.log(message);
}
},
}

Loading

0 comments on commit 0e02e99

Please sign in to comment.