v1.6.4/version bump
- hide/show button - popup redesign - start of tutorial
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user