Skip to content

Commit

Permalink
Added APIdaze.isWebRTCSupported() and APIdaze.browerDetails() functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Sultan committed Oct 10, 2017
1 parent a90d62c commit c273c5f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
import CLIENT from './CLIENT.js';
import * as WebRTCAdapter from 'webrtc-adapter';
import Logger from './Logger.js';

var __VERSION__ = process.env.VERSIONSTR // webpack defineplugin variable

var version = __VERSION__

var LOG_PREFIX = 'APIdaze-' + __VERSION__;

const isWebRTCSupported = function() {
return typeof WebRTCAdapter.browserDetails === "object" &&
typeof WebRTCAdapter.browserShim === "object";
}

const browserDetails = function() {
return WebRTCAdapter.browserDetails;
}

export {
version,
isWebRTCSupported,
browserDetails,
CLIENT
}

0 comments on commit c273c5f

Please sign in to comment.