Commit 6148339d authored by Aurel's avatar Aurel

update modules to use

parent 450b591f
// server.js // server.js
// where your node app starts // where your node app starts
"use strict" "use strict"
global.URI = require("uri-js"); global.URI = require("urijs");
global.RSVP = require('rsvp'); global.RSVP = require('rsvp');
global.UriTemplate = require("uritemplate"); global.UriTemplate = require("uritemplate");
global.moment = require('moment'); global.moment = require('moment');
global.navigator = require('navigator'); global.navigator = require('navigator');
global.Rusha = require('rusha'); global.Rusha = require('rusha');
global.FormData = require('formdata'); global.FormData = require('form-data');
global.atob = require('atob'); global.atob = require('atob');
global.FileReader = require("FileReader"); global.FileReader = require("html5").FileReader;
global.Blob = require("Blob"); global.Blob = require("html5").Blob;
global.localStorage = require('node-localstorage'); global.localStorage = require('node-localstorage');
global.btoa = require('btoa'); global.btoa = require('btoa');
global.XMLHttpRequest = require('w3c-xmlhttprequest').XMLHttpRequest global.XMLHttpRequest = require('xhr2');
global.window = global; global.window = global;
global.sessionStorage = {}; global.sessionStorage = {};
var jIO = require('jio'); var jIO = require('jio');
var ClearRoadBillingPeriodRegistration = require("clearroad"); var ClearRoadBillingPeriodRegistration = require("clearroad");
...@@ -54,3 +54,4 @@ app.get("/", function (request, response) { ...@@ -54,3 +54,4 @@ app.get("/", function (request, response) {
var listener = app.listen(3000, function () { var listener = app.listen(3000, function () {
console.log('Your app is listening on port ' + listener.address().port); console.log('Your app is listening on port ' + listener.address().port);
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment