Default to the major version of the shell if the minor is unknown
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ this program. If not, see <http s ://www.gnu.org/licenses/>.
|
|||||||
const { extensionUtils } = imports.misc;
|
const { extensionUtils } = imports.misc;
|
||||||
const Me = extensionUtils.getCurrentExtension();
|
const Me = extensionUtils.getCurrentExtension();
|
||||||
|
|
||||||
const shellMinorVersion = parseInt(imports.misc.config.PACKAGE_VERSION.split('.')[1]);
|
const shellMinorVersion = parseInt(imports.misc.config.PACKAGE_VERSION.split('.')[1]) || parseInt(imports.misc.config.PACKAGE_VERSION.split('.')[0]);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user