diff --git a/src/js/background.js b/src/js/background.js index 10a7701..7a040b3 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -6,6 +6,9 @@ import * as runtimeEventsTypes from './constants/runtimeEventsTypes' import * as runningItemRepository from './repositories/runningItem' import runningItemInfos from './utils/runningItemInfos' import { presentMinutesDuration } from './utils/presentDuration' +import migrator from './utils/migrator' + +migrator() function renderMinutesBadge (leftTimeInSeconds, late) { let color = late ? '#ED3E3E' : '#0044A9' diff --git a/src/js/utils/migrator.js b/src/js/utils/migrator.js new file mode 100644 index 0000000..2c31302 --- /dev/null +++ b/src/js/utils/migrator.js @@ -0,0 +1,3 @@ +export default function () { + window.localStorage.setItem('current-version', window.chrome.runtime.getManifest().version) +}