This repository has been archived by the owner on Feb 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed socket stuff because we're not using it
- Loading branch information
1 parent
f8d4018
commit 3f002d8
Showing
4 changed files
with
9 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
var feathers = require('feathers-client'); | ||
var rest = require('feathers-rest/client'); | ||
|
||
var app = feathers(document.location.origin); | ||
if (process.env.npm_package_feathersjs_socket) { | ||
/* global io */ | ||
app.configure(feathers.socketio(io())); | ||
/* global io:false */ | ||
} else { | ||
global.fetch = null; | ||
require('whatwg-fetch'); | ||
app.configure(feathers.fetch(global.fetch)); | ||
} | ||
global.fetch = null; | ||
require('whatwg-fetch'); | ||
app.configure(rest().fetch(global.fetch)); | ||
|
||
module.exports = app; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters