Skip to content

Commit

Permalink
feat: update permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnaneJ committed Apr 8, 2024
1 parent f97afa7 commit 7b9de9e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion assets/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ class Background {
console.log('[TradingWorks+] - Chrome Runtime On Connect 🏗️');
await chrome.offscreen.closeDocument()
await Events.createOffscreen();
console.log("opa")
});

chrome.runtime.onMessage.addListener(async (message, sender, sendResponse) => {
Expand Down
2 changes: 1 addition & 1 deletion assets/scripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class DashboardForms {

DashboardHelper.decideScreen();
}catch(err){
console.log(err);
// console.log(err);

Array.from(loginForm.querySelectorAll('.invalid-input')).forEach(alert => {
alert.classList.remove('hidden');
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"manifest_version": 3,
"author": "Ernane Ferreira",
"permissions": ["storage", "notifications", "offscreen", "scripting"],
"permissions": ["storage", "notifications", "offscreen"],
"host_permissions": ["https://app.tradingworks.net/*", "https://buddy.ernane.dev/*", "https://api-main.tworh.com.br/*", "https://api-infra.tworh.com.br/", "https://cdn.jsdelivr.net/*"],
"action": {
"default_popup": "./popup.html",
Expand Down
5 changes: 3 additions & 2 deletions offscreen/offscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class TWOffscreen {

return await rawData.json();
} catch (e) {
console.log(e);
// console.log(e);
return null;
}
}
Expand All @@ -231,12 +231,13 @@ class TWOffscreen {

return await rawData.json();
} catch (e) {
console.log(e);
// console.log(e);
return null;
}
}

async #updateTradingWorksData() {
console.log('[TradingWorks+] - Offscreen Update Data 🔄');
const active = JSON.parse(localStorage.getItem('tradingWorksPlusStatusExtension'));
if (!active){
this.#setScreen('disabled');
Expand Down

0 comments on commit 7b9de9e

Please sign in to comment.