Skip to content

Commit

Permalink
Rename the global version variable to svgomgVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 24, 2021
1 parent bba84f1 commit 81e498a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.html
Expand Up @@ -16,7 +16,7 @@
ga('create', 'UA-58850134-1', 'auto');
ga('send', 'pageview');

window.version = "{{changelog[0].version}}";
window.svgomgVersion = "{{changelog[0].version}}";

// Delay analytics until after the page has loaded, to avoid extending
// the browser spinner, and allow higher priority stuff through.
Expand Down
4 changes: 2 additions & 2 deletions src/js/page/main-controller.js
Expand Up @@ -35,7 +35,7 @@ export default class MainController {
this._toastsUi = new Toasts();
this._dropUi = new FileDrop();
this._preloaderUi = new Preloader();
this._changelogUi = new Changelog(self.version);
this._changelogUi = new Changelog(self.svgomgVersion);
this._resultsContainerUi = new ResultsContainer(this._resultsUi);
this._viewTogglerUi = new ViewToggler();

Expand Down Expand Up @@ -80,7 +80,7 @@ export default class MainController {
// tell the user about the latest update
storage.get('last-seen-version').then((lastSeenVersion) => {
if (lastSeenVersion) this._changelogUi.showLogFrom(lastSeenVersion);
storage.set('last-seen-version', self.version);
storage.set('last-seen-version', self.svgomgVersion);
});

domReady.then(() => {
Expand Down

0 comments on commit 81e498a

Please sign in to comment.