Skip to content

Commit

Permalink
[build#prod]
Browse files Browse the repository at this point in the history
  • Loading branch information
ufb committed Jul 12, 2019
1 parent ca6db31 commit 755a4d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions extension/background/background.wp.js
Original file line number Diff line number Diff line change
Expand Up @@ -2086,7 +2086,7 @@ new _utils._MODULE({
misc.notefontsize = defaultSettings.misc.notefontsize;
}

if (!misc.markmethod) {
if (typeof misc.markmethod !== 'string') {
misc.markmethod = defaultSettings.misc.markmethod;
}

Expand Down Expand Up @@ -2185,12 +2185,9 @@ new _utils._MODULE({
}, area);
});
},
setStorageOnUpgrade: function setStorageOnUpgrade() {
setStorageOnUpgrade: function setStorageOnUpgrade(_, loadReason) {
var _this = this;

var prevVersion = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '2';
var loadReason = arguments.length > 1 ? arguments[1] : undefined;

_storage2["default"].isEmpty('local').then(function (empty) {
if (empty) {
if (loadReason !== 'install') _this.emit('error', 'error_empty_local_storage_onupdate');
Expand All @@ -2210,9 +2207,9 @@ new _utils._MODULE({
return _storage2["default"].set('storage', 'sync');
}) //.then(() => _STORAGE.set('storage', 'local'))
.then(function () {
return _this.emit('initialized:storage', prevVersion);
return _this.emit('initialized:storage');
})["catch"](function (e) {
_this.emit('initialized:storage', prevVersion);
_this.emit('initialized:storage');

_this.emit('error', 'error_storage_migration', e.toString());
});
Expand Down
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Textmarker",
"version": "5.1.1",
"version": "5.1.2",

"applications": {
"gecko": {
Expand Down

0 comments on commit 755a4d7

Please sign in to comment.