fregante/webext-options-sync

Automatically update fields when they change in another synced browser

fregante opened this issue · 0 comments

With something like

chrome.storage.onChanged.addListener(changes => {
	const fields = {};
	for (const name of Object.keys(changes)) {
		fields[name] = changes[name].newValue;
	}
	updateInputs(fields);
});