title: browser is not defined - React
body: <p>I am having a problem with the Chrome browser and not Firefox.</p>
  <blockquote>
  <p>Paused on exception ReferenceError: browser is not defined</p>
  <p>ReferenceError: browser is not defined at shouldWrapAPIs
  (polyfill.js:228) at polyfill.js:250</p>
  </blockquote>
  <p>I can’t identify the cause of the problem, only that it happens in Chrome and not Firefox.</p>
  <p>Could someone give me some help indicating what causes that problem?</p>
  <p>It shows me in polyfill.js the following.
  indicating precisely the following line</p>
  <blockquote>
  <p>return !(browser.storage.local.get() instanceof Promise);</p>
  </blockquote>
  <pre><code>function shouldWrapAPIs()
  {
  try
  {
  return !(browser.storage.local.get() instanceof Promise);
  }
  catch (error)
  {
  }
  
  return true;
  }
  </code></pre>
  <p>As indicated by error in the line return! (Browser.storage.local.get () instanceof Promise); I consider that it is an error that possibly comes from saving or storing data in the browser.</p>
  <p>I save data in the browser with the following API.</p>
  <pre><code>export async function setItem(key: string, value: any) {
    await Storage.set({
      key: key,
      value: value
    });
  }
  
  export async function getItem(key: string) : Promise&lt;any&gt;{
    const { value } = await Storage.get({ key: key});
    return value;
  }
  export async function removeItem(key: string) {
    await Storage.remove({ key: key });
  }
  </code></pre>
  <p>Is it possible that the problem comes from there?</p>
  <p>I use the API for example as shown in the following code:</p>
  <pre><code>  axios.get(url+&quot;1&quot;+&quot;/&quot;+user+&quot;/&quot;+email)
    .then((res: { data: any; }) =&gt; {
      const resquest = res.data;
      console.log(res.data)
      if(resquest===&quot;User alredy taken&quot;){
        onShowAlert();
      }
      else{
          setItem(&quot;isRegistered&quot;, user );
          setItem(&quot;infoCompleted&quot;, false);
          setItem(&quot;clientType&quot;, &quot;1&quot;);
          setCount(5);
      }
    })
  </code></pre>
  <p>Thanks in advance.</p>