Skip to content

Commit

Permalink
move stuff around - ms
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsof21 committed Aug 22, 2022
1 parent cc16a71 commit 1112e82
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 30 deletions.
7 changes: 0 additions & 7 deletions .prettierrc.json

This file was deleted.

Binary file removed assets/icons/icon.png
Binary file not shown.
Binary file removed assets/icons/icon_128.png
Binary file not shown.
Binary file removed assets/icons/icon_16.png
Binary file not shown.
Binary file removed assets/icons/icon_32.png
Binary file not shown.
Binary file removed assets/icons/icon_48.png
Binary file not shown.
Binary file removed assets/icons/icon_64.png
Binary file not shown.
Binary file removed assets/screenshots/screenshot_1.png
Binary file not shown.
Binary file removed assets/screenshots/screenshot_2.png
Binary file not shown.
Binary file removed icon.png
Binary file not shown.
8 changes: 2 additions & 6 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,11 @@
}
},
"action": {
"default_icon": "assets/icons/icon_128.png",
"default_icon": "icon.png",
"default_title": "Voice DIM"
},
"icons": {
"16": "assets/icons/icon_16.png",
"32": "assets/icons/icon_32.png",
"48": "assets/icons/icon_48.png",
"64": "assets/icons/icon_64.png",
"128": "assets/icons/icon_128.png"
"128": "icon.png"
},
"permissions": ["tabs"]
}
7 changes: 7 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
trailingComma: 'es5',
tabWidth: 2,
semi: true,
singleQuote: true,
printWidth: 120,
};
10 changes: 3 additions & 7 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,11 @@
}
},
"action": {
"default_icon": "assets/icons/icon_128.png",
"default_title": "DIM Voice Actions"
"default_icon": "icon.png",
"default_title": "DIM Voice"
},
"icons": {
"16": "assets/icons/icon_16.png",
"32": "assets/icons/icon_32.png",
"48": "assets/icons/icon_48.png",
"64": "assets/icons/icon_64.png",
"128": "assets/icons/icon_128.png"
"128": "icon.png"
},
"permissions": ["tabs"]
}
14 changes: 4 additions & 10 deletions src/ts/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@ chrome.commands.onCommand.addListener((command) => {
console.log(`[dim-voice] Command "${command}" triggered`);

chrome.tabs.query({}, function (tabs) {
const dimTab = tabs.filter((tab) =>
tab.url?.includes('destinyitemmanager.com')
)[0];
const dimTab = tabs.filter((tab) => tab.url?.includes('destinyitemmanager.com'))[0];

if (dimTab.id)
chrome.tabs.sendMessage(
dimTab.id,
{ dimShortcutPressed: true },
function (response) {
console.log('[dim-voice]', response.ack);
}
);
chrome.tabs.sendMessage(dimTab.id, { dimShortcutPressed: true }, function (response) {
console.log('[dim-voice]', response.ack);
});
});
});

Expand Down

0 comments on commit 1112e82

Please sign in to comment.