3.0.18-beta1
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
angular.module('app')
|
||||
|
||||
.constant('appVersion', '3.0.17')
|
||||
.constant('appVersion', '3.0.18-beta1')
|
||||
|
||||
;
|
||||
@@ -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;
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -71,7 +71,7 @@ class DesktopManager {
|
||||
return;
|
||||
}
|
||||
this.lastSearchedText = text;
|
||||
this.searchHandler(text);
|
||||
this.searchHandler && this.searchHandler(text);
|
||||
}
|
||||
|
||||
redoSearch() {
|
||||
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "standard-notes-web",
|
||||
"version": "3.0.17",
|
||||
"version": "3.0.18-beta1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user