mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-23 01:32:51 +02:00
11 lines
303 B
JavaScript
11 lines
303 B
JavaScript
const webext = require("sdk/webextension");
|
|
const {setSyncLegacyDataPort} = require("./lib/user-data-storage");
|
|
|
|
webext.startup().then(({browser}) => {
|
|
browser.runtime.onConnect.addListener(port => {
|
|
if (port.name === "sync-legacy-addon-data") {
|
|
setSyncLegacyDataPort(port);
|
|
}
|
|
});
|
|
});
|