Skip to content

Commit

Permalink
增加 version_name 支持 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore authored and riophae committed Apr 17, 2019
1 parent 53e9509 commit bb588b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/libs/getExtensionVersion.js
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit bb588b3

Please sign in to comment.