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() { function isDesktopApplication() {
return window && window.process && window.process.type && window.process.versions["electron"]; return window.isElectron;
}
function isMacApplication() {
return window && window.process && window.process.type && window.process.platform == "darwin";
} }
/* Use with numbers and strings, not objects */ /* Use with numbers and strings, not objects */

View File

@@ -1,5 +1,5 @@
angular.module('app') 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(); this.lastSyncDate = new Date();
} }
$rootScope.$on("new-update-available", function(version){ $rootScope.$on("new-update-available", () => {
$timeout(function(){ $timeout(() => {
// timeout calls apply() which is needed
this.onNewUpdateAvailable(); this.onNewUpdateAvailable();
}.bind(this)) })
}.bind(this)) })
this.onNewUpdateAvailable = function() { this.onNewUpdateAvailable = function() {
this.newUpdateAvailable = true; this.newUpdateAvailable = true;

View File

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

View File

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

2
package-lock.json generated
View File

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

View File

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