/webextension-window

WebExtension library for accessing document.window from content scripts

Primary LanguageJavaScript

webextension-window

Library for accessing document.window variable from content scripts with no deps.

Installation

yarn add webextension-window or npm install webextension-window

Example

import getVariable from 'webextension-window';

const value = getVariable('someWindowValue'); //equal to window.someWindowValue