|
|
@ -1,6 +1,7 @@ |
|
|
|
import { |
|
|
|
import { |
|
|
|
WINDOWS_CREATE, WINDOWS_REMOVE, WINDOWS_GET, |
|
|
|
WINDOWS_CREATE, WINDOWS_REMOVE, WINDOWS_GET, |
|
|
|
TABS_CREATE, TABS_SELECT_AT, TABS_GET, TABS_GET_ZOOM, TABS_SET_ZOOM, |
|
|
|
TABS_CREATE, TABS_SELECT_AT, TABS_GET, TABS_UPDATE, |
|
|
|
|
|
|
|
TABS_GET_ZOOM, TABS_SET_ZOOM, |
|
|
|
EVENT_KEYPRESS, EVENT_KEYDOWN, EVENT_KEYUP, |
|
|
|
EVENT_KEYPRESS, EVENT_KEYDOWN, EVENT_KEYUP, |
|
|
|
SCROLL_GET, SCROLL_SET, |
|
|
|
SCROLL_GET, SCROLL_SET, |
|
|
|
} from '../shared/messages'; |
|
|
|
} from '../shared/messages'; |
|
|
@ -27,6 +28,8 @@ receiveContentMessage((message) => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
case TABS_GET: |
|
|
|
case TABS_GET: |
|
|
|
return browser.tabs.get(message.tabId); |
|
|
|
return browser.tabs.get(message.tabId); |
|
|
|
|
|
|
|
case TABS_UPDATE: |
|
|
|
|
|
|
|
return browser.tabs.update(message.tabId, message.properties); |
|
|
|
case TABS_GET_ZOOM: |
|
|
|
case TABS_GET_ZOOM: |
|
|
|
return browser.tabs.getZoom(message.tabId); |
|
|
|
return browser.tabs.getZoom(message.tabId); |
|
|
|
case TABS_SET_ZOOM: |
|
|
|
case TABS_SET_ZOOM: |
|
|
|