Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Move compare-versions require up; it wasn't being packaged w/ webpack
Browse files Browse the repository at this point in the history
Auditors: @darkdh
  • Loading branch information
bsclifton committed Sep 6, 2017
1 parent eba55a1 commit 1493f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/sessionStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const electron = require('electron')
const os = require('os')
const assert = require('assert')
const app = electron.app
const compareVersions = require('compare-versions')
const locale = require('./locale')
const UpdateStatus = require('../js/constants/updateStatus')
const settings = require('../js/constants/settings')
Expand Down Expand Up @@ -569,7 +570,6 @@ module.exports.runPostMigrations = (immutableData) => {
if (immutableData.get('lastAppVersion')) {
// Force WidevineCdm to be upgraded when last app version <= 0.18.25
let runWidevineCleanup = false
const compareVersions = require('compare-versions')

try { runWidevineCleanup = compareVersions(immutableData.get('lastAppVersion'), '0.18.25') < 1 } catch (e) {}

Expand Down

1 comment on commit 1493f22

@darkdh
Copy link
Member

@darkdh darkdh commented on 1493f22 Sep 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.