blob: dc22691da44beadb6715b0a6ca7591993d82a08c [file] [log] [blame]
Adrià Vilanova Martínezbbc8d7c2024-04-21 16:28:05 +02001let actionApi;
2
Adrià Vilanova Martínez54fbad12022-01-04 03:39:04 +01003// #!if browser_target == 'chromium_mv3'
Adrià Vilanova Martínezbbc8d7c2024-04-21 16:28:05 +02004actionApi = typeof chrome !== 'undefined' ? chrome.action : undefined;
Adrià Vilanova Martínez54fbad12022-01-04 03:39:04 +01005// #!else
Adrià Vilanova Martínezbbc8d7c2024-04-21 16:28:05 +02006actionApi = typeof chrome !== 'undefined' ? chrome.browserAction : undefined;
Adrià Vilanova Martínez54fbad12022-01-04 03:39:04 +01007// #!endif
Adrià Vilanova Martínezbbc8d7c2024-04-21 16:28:05 +02008
9export default actionApi;