Skip to content

Commit

Permalink
test browseraction removed
Browse files Browse the repository at this point in the history
  • Loading branch information
micz committed Jan 10, 2025
1 parent 44ae278 commit d8787bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
5 changes: 0 additions & 5 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
"permissions": [
"storage"
],
"browser_action": {
"default_title": "ThunderAI",
"default_icon": "images/thunderai-icon-32px.png",
"allowed_spaces": []
},
"background": {
"page": "mztas-background.html"
},
Expand Down
24 changes: 12 additions & 12 deletions mztas-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
*/

// ============== FOR TESTING ==============
browser.browserAction.onClicked.addListener(() => {
testThunderAISparks();
});

async function testThunderAISparks(){
await browser.CalendarTools.openCalendarDialog({
startDate: '20250104T183000Z',
endDate: '20250104T193000Z',
summary: "ThunderAI Sparks",
forceAllDay: false
});
}
// browser.browserAction.onClicked.addListener(() => {
// testThunderAISparks();
// });

// async function testThunderAISparks(){
// await browser.CalendarTools.openCalendarDialog({
// startDate: '20250104T183000Z',
// endDate: '20250104T193000Z',
// summary: "ThunderAI Sparks",
// forceAllDay: false
// });
// }
// =========================================

// Listen for messages
Expand Down

0 comments on commit d8787bf

Please sign in to comment.