82af000a37
* 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
8 lines
343 B
JavaScript
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);
|
|
});
|
|
});
|