Skip to content
This repository was archived by the owner on Apr 27, 2023. It is now read-only.

Commit 74c5cae

Browse files
authored
Merge pull request #72 from pureooze/saka-key-messaging
Fixes messaging issue with saka key
2 parents c5102be + 8f1cc12 commit 74c5cae

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/background_page/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ async function saveSettings(searchHistory) {
109109
await browser.storage.sync.set({ searchHistory: [...searchHistory] });
110110
}
111111

112-
chrome.browserAction.onClicked.addListener(() => {
112+
browser.browserAction.onClicked.addListener(() => {
113113
toggleSaka();
114114
});
115115

116-
chrome.commands.onCommand.addListener(command => {
116+
browser.commands.onCommand.addListener(command => {
117117
switch (command) {
118118
case 'toggleSaka':
119119
case 'toggleSaka2':
@@ -126,7 +126,7 @@ chrome.commands.onCommand.addListener(command => {
126126
}
127127
});
128128

129-
chrome.runtime.onMessage.addListener(async (message, sender) => {
129+
browser.runtime.onMessage.addListener(async (message, sender) => {
130130
switch (message.key) {
131131
case 'toggleSaka':
132132
toggleSaka();
@@ -140,7 +140,7 @@ chrome.runtime.onMessage.addListener(async (message, sender) => {
140140
}
141141
});
142142

143-
chrome.runtime.onMessageExternal.addListener(message => {
143+
browser.runtime.onMessageExternal.addListener(message => {
144144
switch (message) {
145145
case 'toggleSaka':
146146
toggleSaka();
@@ -150,7 +150,7 @@ chrome.runtime.onMessageExternal.addListener(message => {
150150
}
151151
});
152152

153-
chrome.contextMenus.create({
153+
browser.contextMenus.create({
154154
title: 'Saka',
155155
contexts: ['all'],
156156
onclick: () => toggleSaka()

static/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Saka",
3-
"version": "0.16.0",
3+
"version": "0.16.1",
44
"author": "Sufyan Dawoodjee, Uzair Shamim",
55
"description": "Saka - elegent tab search, selection, and beyond",
66
"manifest_version": 2,

0 commit comments

Comments
 (0)