Skip to content

Commit 45867df

Browse files
author
skjnldsv
committed
Version check fix
1 parent 6b5a0d5 commit 45867df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/components/addressBook/addressBook_controller.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ angular.module('contactsApp')
44

55
ctrl.showUrl = false;
66
/* globals oc_config */
7-
/* eslint camelcase: [2, {properties: "never"}] */
8-
ctrl.canExport = parseFloat(oc_config.version.substring(0, 3)) >= 9.1;
7+
/* eslint-disable camelcase */
8+
ctrl.canExport = oc_config.versionstring.split('.') >= [9, 0, 2];
9+
/* eslint-enable camelcase */
910

1011
ctrl.toggleShowUrl = function() {
1112
ctrl.showUrl = !ctrl.showUrl;

0 commit comments

Comments
 (0)