electron/spec/fixtures/extensions/chrome-storage/main.js
Milan Burda 82af000a37
chore: cleanup eslint suppressions (#38417)
* chore: cleanup eslint suppressions

* address feedback

* revert script/lib/azput.js

* revert spec/fixtures/apps/remote-control/main.js

* address feedback

* revert typings/internal-ambient.d.ts
2023-05-25 10:09:17 +09:00

8 lines
343 B
JavaScript

/* global chrome */
chrome.storage.local.set({ key: 'value' }, () => {
chrome.storage.local.get(['key'], ({ key }) => {
const script = document.createElement('script');
script.textContent = `require('electron').ipcRenderer.send('storage-success', ${JSON.stringify(key)})`;
document.documentElement.appendChild(script);
});
});