v1.6.0/copyright updates
This commit is contained in:
+19
-17
@@ -5,16 +5,9 @@ Proprietary and confidential
|
||||
Written by Ayushya Amitabh <admin@chromewatchparty.com>, 2020
|
||||
https://www.chromewatchparty.com/copyright
|
||||
=========================================================================
|
||||
ALL CONTENT ON IN WATCH PARTY'S CHROME EXTENSION APP, UNLESS OTHERWISE
|
||||
ALL CONTENT ON WATCH PARTY'S WEBSITE OR IN WATCH PARTY'S CHROME EXTENSION APP, UNLESS OTHERWISE
|
||||
CITED ARE THE SOLE INTELECTUAL PROPERTY OF AYUSHYA AMITABH, AND MAY NOT BE
|
||||
COPIED, EDITED, OR REPRODUCED WITHOUT PERMISSION.
|
||||
|
||||
Netflix logo is a trademark and intellectual property of Netflix, Inc.
|
||||
Disney+ logo is a trademark and intellectual property of The Walt Disney Company
|
||||
Prime logo is a trademark and intellectual property of Amazon.com, Inc.
|
||||
YouTube logo is a trademark and intellectual property of Google, Inc.
|
||||
Hulu logo is a trademark and intellectual property of Hulu, LLC.
|
||||
HBO Now and HBO Max logos are trademark and intellectual property of WarnerMedia Direct,LLC.
|
||||
************************************************************************/
|
||||
/* global chrome */
|
||||
/* global firebase */
|
||||
@@ -71,7 +64,7 @@ const sendAuth = async (sendResponse) => {
|
||||
sendResponse(firebase.auth().currentUser);
|
||||
};
|
||||
|
||||
chrome.runtime.onInstalled.addListener((details) => {
|
||||
chrome.runtime.onInstalled.addListener((details) => {
|
||||
if (details.reason) {
|
||||
if (details.reason === 'install') {
|
||||
if (window.localStorage.getItem('watchPartyVersion')) {
|
||||
@@ -117,7 +110,11 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
|
||||
sendAuth(sendResponse);
|
||||
break;
|
||||
case 'GET_PARTIES':
|
||||
sendResponse(window.localStorage.getItem('parties') ? JSON.parse(window.localStorage.getItem('parties')): []);
|
||||
sendResponse(
|
||||
window.localStorage.getItem('parties')
|
||||
? JSON.parse(window.localStorage.getItem('parties'))
|
||||
: []
|
||||
);
|
||||
break;
|
||||
case 'EMPTY_PARTIES':
|
||||
window.localStorage.removeItem('parties');
|
||||
@@ -192,19 +189,24 @@ chrome.runtime.onConnect.addListener((port) => {
|
||||
);
|
||||
if (window.localStorage.getItem('parties')) {
|
||||
var existing = JSON.parse(window.localStorage.getItem('parties'));
|
||||
if (!(existing.filter(i => i.name === roomId).length > 0)){
|
||||
if (!(existing.filter((i) => i.name === roomId).length > 0)) {
|
||||
existing.push({
|
||||
name: roomId,
|
||||
pin: roomPin
|
||||
pin: roomPin,
|
||||
});
|
||||
window.localStorage.setItem('parties', JSON.stringify(existing));
|
||||
}
|
||||
} else {
|
||||
window.localStorage.setItem('parties', JSON.stringify([{
|
||||
name: roomId,
|
||||
pin: roomPin,
|
||||
}]));
|
||||
window.localStorage.setItem(
|
||||
'parties',
|
||||
JSON.stringify([
|
||||
{
|
||||
name: roomId,
|
||||
pin: roomPin,
|
||||
},
|
||||
])
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user