v1.6.4/version bump

- hide/show button
- popup redesign
- start of tutorial
This commit is contained in:
2020-08-26 18:19:01 -04:00
parent 51f191b794
commit 60758dc35a
13 changed files with 269 additions and 68 deletions
+37
View File
@@ -48,6 +48,43 @@ export const getPlayerSource = () => {
if (HREF.includes(PLAYER_SOURCE.LOCAL)) return PLAYER_SOURCE.LOCAL;
};
export const getShowWPButton = () =>
new Promise((resolve, reject) => {
chrome.runtime.sendMessage(
{
type: 'IS_HIDDEN',
},
(response) => {
resolve(response);
}
);
});
export const getTutorialStatus = () =>
new Promise((resolve, reject) => {
chrome.runtime.sendMessage(
{
type: 'GET_TUTORIAL',
},
(response) => {
resolve(response);
}
);
});
export const setTutorialStatus = (status) =>
new Promise((resolve, reject) => {
chrome.runtime.sendMessage(
{
type: 'SET_TUTORIAL',
status,
},
(response) => {
resolve(response);
}
);
});
export const LocalData = () => {
return window.localStorage.getItem('WatchParty')
? JSON.parse(window.localStorage.getItem('WatchParty'))