3.0.18-beta1
This commit is contained in:
@@ -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 */
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
angular.module('app')
|
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();
|
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;
|
||||||
|
|||||||
@@ -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) => {
|
||||||
|
|||||||
@@ -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
2
package-lock.json
generated
@@ -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": {
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user