Accessing Cookies API from a React WebExtension
Clash Royale CLAN TAG #URR8PPP Accessing Cookies API from a React WebExtension Summary I'm trying to access the Cookies API from a WebExtension which uses React, but I don't know why, it throws a TypeException, as if browser.cookies did not exist. browser.cookies I've checked permissions and the code is copy/pasted from the MDN docs... but still I can't get it to work. Exception: TypeError: browser.cookies is undefined Code This is the main component: import React from 'react'; import ReactDOM from 'react-dom'; class Popup extends React.Component { constructor(props) { super(props); this.state = { sessionId: null }; } componentDidMount() { var getting = browser.cookies.getAllCookieStores(); // This throws "TypeError: browser.cookies is undefined" getting.then(logStores); } render() { return ( <div> <h1>My App</h1> </div> ...