urbit-browser-manager/extension/background/main.js
2021-01-03 01:49:48 -08:00

14 lines
474 B
JavaScript

const browser = require("webextension-polyfill");
console.log("Executing Urbit extension background main script");
browser.storage.sync.get("credentials")
.then((result) => {
console.log(result);
if (result.credentials && result.credentials.urbitId && result.credentials.urbitCode) {
console.log("Creds:");
console.log(result.credentials);
} else {
console.log("Couldn't find credentials");
}
});