From 30990f3bd7318d235a9ced9e4096b6f41e3b92e4 Mon Sep 17 00:00:00 2001 From: abhijithvijayan <34790378+abhijithvijayan@users.noreply.github.com> Date: Mon, 27 Jan 2020 21:26:49 +0530 Subject: [PATCH] chore: add sample listener to background script --- src/Background/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Background/index.ts b/src/Background/index.ts index e7624f1..0ccd78a 100644 --- a/src/Background/index.ts +++ b/src/Background/index.ts @@ -1 +1,5 @@ -console.log('this is background scripts file'); +import { browser } from 'webextension-polyfill-ts'; + +browser.runtime.onInstalled.addListener((): void => { + console.log('extension installed'); +});