Skip to content

Commit

Permalink
Remove unnecessary async from injectScript
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Aug 6, 2021
1 parent b0a9ed2 commit 8634e0c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions extension/src/contentScript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ browser.runtime.onMessage.addListener(async function(msg: Message<any>) {
*
* @param {string} contentPath - Path to be js file to be included
*/
async function injectScript(contentPath: string) {
function injectScript(contentPath: string) {
try {
const container = document.head || document.documentElement;
const scriptTag = document.createElement("script");
Expand All @@ -62,6 +62,4 @@ async function injectScript(contentPath: string) {

const inpageUrl = browser.runtime.getURL("in_page.bundle.js");

(async function() {
await injectScript(inpageUrl);
}());
injectScript(inpageUrl);

0 comments on commit 8634e0c

Please sign in to comment.