Fixed eslint

This commit is contained in:
antelle 2017-12-16 13:13:59 +01:00
parent afaf9ebd02
commit 2dc8e85563
2 changed files with 6 additions and 6 deletions

View File

@ -85,11 +85,11 @@ module.exports = function(grunt) {
replacement: function() { return '\n'; }
}]})},
{ test: /runtime-info\.js$/, loader: StringReplacePlugin.replace({ replacements: [
{
pattern: /@@VERSION/g,
replacement: function () { return pkg.version + (grunt.option('beta') ? '-beta' : '') }
},
{pattern: /@@BETA/g, replacement: function () { return grunt.option('beta') ? '1' : '' }},
{
pattern: /@@VERSION/g,
replacement: function () { return pkg.version + (grunt.option('beta') ? '-beta' : ''); }
},
{ pattern: /@@BETA/g, replacement: function() { return grunt.option('beta') ? '1' : ''; } },
{ pattern: /@@DATE/g, replacement: function() { return dt; } },
{ pattern: /@@COMMIT/g, replacement: function() { return grunt.config.get('gitinfo.local.branch.current.shortSHA'); } }
]})},

View File

@ -34,7 +34,7 @@ const AppModel = Backbone.Model.extend({
this.sort = 'title';
this.settings = AppSettingsModel.instance;
this.activeEntryId = null;
this.isBeta = RuntimeInfo.beta
this.isBeta = RuntimeInfo.beta;
this.listenTo(Backbone, 'refresh', this.refresh);
this.listenTo(Backbone, 'set-filter', this.setFilter);