File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ vAPI.supportsUserStylesheets = vAPI.webextFlavor.soup.has('user_stylesheet');
4848vAPI . app = {
4949 name : manifest . name . replace ( / d e v \w + b u i l d / , '' ) ,
5050 version : ( ( ) => {
51- let version = manifest . version ;
51+ let version = manifest . version_name || manifest . version ;
5252 const match = / ( \d + \. \d + \. \d + ) (?: \. ( \d + ) ) ? / . exec ( version ) ;
5353 if ( match && match [ 2 ] ) {
5454 const v = parseInt ( match [ 2 ] , 10 ) ;
Original file line number Diff line number Diff line change @@ -166,7 +166,9 @@ vAPI.webextFlavor = {
166166 soup . add ( 'ipaddress' ) ;
167167
168168 // Whether this is a dev build.
169- if ( / ^ \d + \. \d + \. \d + \D / . test ( browser . runtime . getManifest ( ) . version ) ) {
169+ const manifest = browser . runtime . getManifest ( ) ;
170+ const version = manifest . version_name || manifest . version ;
171+ if ( / ^ \d + \. \d + \. \d + \D / . test ( version ) ) {
170172 soup . add ( 'devbuild' ) ;
171173 }
172174
You can’t perform that action at this time.
0 commit comments