diff --git a/src/libs/getExtensionVersion.js b/src/libs/getExtensionVersion.js index bb27130..a0d256b 100644 --- a/src/libs/getExtensionVersion.js +++ b/src/libs/getExtensionVersion.js @@ -1 +1,6 @@ -export default () => chrome.runtime.getManifest().version +export default () => { + const {version, version_name} = chrome.runtime.getManifest() + + // version_name 字段用于存放 beta 版本号,为空时表示正式版 + return version_name || version +}