mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-10 09:39:58 +00:00
Message response doesn't need to be in message format
This commit is contained in:
@@ -3,12 +3,10 @@ import semver from "semver";
|
||||
export default async function getBridgeInfo () {
|
||||
let applicationVersion;
|
||||
try {
|
||||
const response = await browser.runtime.sendNativeMessage(
|
||||
applicationVersion = await browser.runtime.sendNativeMessage(
|
||||
APPLICATION_NAME
|
||||
, { subject: "bridge:/getInfo"
|
||||
, data: EXTENSION_VERSION });
|
||||
|
||||
applicationVersion = response.data;
|
||||
} catch (err) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user