v1.7.3/firefox support uid

This commit is contained in:
2020-09-09 23:04:37 -04:00
parent 29f92783ae
commit c39e25d3ef
2 changed files with 18 additions and 9 deletions
+4 -3
View File
@@ -127,8 +127,8 @@ export const scrollThread = () => {
}, 250);
};
export const getUserUid = async () =>
new Promise((resolve, reject) => {
export const getUserUid = async () => {
return new Promise((resolve, reject) => {
CHROME_OR_BROWSER.runtime.sendMessage(
{
type: 'GET_AUTH',
@@ -136,10 +136,11 @@ export const getUserUid = async () =>
(response) => {
const { uid } = response;
updateLocalData({ userUid: uid });
resolve(uid);
resolve(response);
}
);
});
};
export const fetcher = async ({ endpoint, method, ...args }) => {
const url = `${API_HOST}/${endpoint}`;