2021-01-03 01:49:48 -08:00
|
|
|
const browser = require("webextension-polyfill");
|
2020-11-28 00:08:38 -08:00
|
|
|
console.log("Executing Urbit extension background main script");
|
2021-01-03 01:49:48 -08:00
|
|
|
|
|
|
|
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");
|
|
|
|
}
|
|
|
|
});
|