3.0.18-beta1

This commit is contained in:
Mo Bitar
2019-10-15 16:04:45 -05:00
parent 0a8bc98725
commit 03782f01db
7 changed files with 11 additions and 16 deletions

View File

@@ -43,11 +43,7 @@ function getPlatformString() {
}
function isDesktopApplication() {
return window && window.process && window.process.type && window.process.versions["electron"];
}
function isMacApplication() {
return window && window.process && window.process.type && window.process.platform == "darwin";
return window.isElectron;
}
/* Use with numbers and strings, not objects */

View File

@@ -1,5 +1,5 @@
angular.module('app')
.constant('appVersion', '3.0.17')
.constant('appVersion', '3.0.18-beta1')
;

View File

@@ -163,12 +163,11 @@ angular.module('app')
this.lastSyncDate = new Date();
}
$rootScope.$on("new-update-available", function(version){
$timeout(function(){
// timeout calls apply() which is needed
$rootScope.$on("new-update-available", () => {
$timeout(() => {
this.onNewUpdateAvailable();
}.bind(this))
}.bind(this))
})
})
this.onNewUpdateAvailable = function() {
this.newUpdateAvailable = true;

View File

@@ -7,8 +7,8 @@ angular.module('app')
$scope.platform = getPlatformString();
$scope.onUpdateAvailable = function(version) {
$rootScope.$broadcast('new-update-available', version);
$scope.onUpdateAvailable = function() {
$rootScope.$broadcast('new-update-available');
}
$rootScope.$on("panel-resized", (event, info) => {

View File

@@ -71,7 +71,7 @@ class DesktopManager {
return;
}
this.lastSearchedText = text;
this.searchHandler(text);
this.searchHandler && this.searchHandler(text);
}
redoSearch() {

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "standard-notes-web",
"version": "3.0.17",
"version": "3.0.18-beta1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "standard-notes-web",
"version": "3.0.17",
"version": "3.0.18-beta1",
"license": "AGPL-3.0-or-later",
"repository": {
"type": "git",