Adapt extension check to new extensions

This commit is contained in:
Levin Rickert
2020-02-20 19:36:30 +01:00
parent f5bbcb2777
commit f636e7dbd4
3 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,6 @@
export const hasExtensionInstalled = () =>
typeof window.__POSTWOMAN_EXTENSION_HOOK__ !== "undefined";
const extensionWithProxy = async (req, { state }) => {
const { data } = await window.__POSTWOMAN_EXTENSION_HOOK__.sendRequest({
method: "post",