webextension-polyfill/test/fixtures/detect-existing-browser-api.../copy-original-api-objects.js

9 lines
365 B
JavaScript

// Store a copy of the references to the original API objects.
const originalAPIObjects = { // eslint-disable-line no-unused-vars
// NOTE: on the Browsers that do not provide the browser API object natively,
// this will initially point to the HTMLCollection of the <div id="browser"> elements
// that are part of the background page.
browser,
chrome,
};