v1.7.3/firefox support

This commit is contained in:
2020-09-09 18:01:44 -04:00
parent 457bbd683d
commit af76f2ff7d
31 changed files with 168 additions and 41 deletions
+6 -2
View File
@@ -9,7 +9,9 @@ ALL CONTENT ON WATCH PARTY'S WEBSITE OR IN WATCH PARTY'S CHROME EXTENSION APP, U
CITED ARE THE SOLE INTELLECTUAL PROPERTY OF AYUSHYA AMITABH, AND MAY NOT BE
COPIED, EDITED, OR REPRODUCED WITHOUT PERMISSION.
************************************************************************/
/*global chrome */
/*global chrome*/
/*global browser*/
import React, { Component } from 'react';
import {
Typography,
@@ -73,6 +75,8 @@ import CallManager from './CallManager';
import VideoListener from './VideoListener';
import ReactGiphySearchbox from 'react-giphy-searchbox';
let CHROME_OR_BROWSER = chrome || browser;
export default class Chat extends Component {
constructor(props) {
super(props);
@@ -161,7 +165,7 @@ export default class Chat extends Component {
this.mVideoListener.start();
// CHROME FIREBASE FIRESTORE LISTENER
this.port = chrome.runtime.connect({ name: LocalData().partyName });
this.port = CHROME_OR_BROWSER.runtime.connect({ name: LocalData().partyName });
// Initialize listener
this.port.postMessage({
type: 'INIT',