Merge branch 'master' of github.com:standardnotes/web into ivs
This commit is contained in:
@@ -98,11 +98,17 @@ class AccountMenu {
|
||||
}
|
||||
|
||||
$scope.submitRegistrationForm = function() {
|
||||
var confirmation = prompt("Please confirm your password. Note that because your notes are encrypted using your password, Standard Notes does not have a password reset option. You cannot forget your password.")
|
||||
$scope.formData.confirmPassword = true;
|
||||
}
|
||||
|
||||
$scope.submitPasswordConfirmation = function() {
|
||||
let confirmation = $scope.formData.pw_confirmation;
|
||||
if(confirmation !== $scope.formData.user_password) {
|
||||
alert("The two passwords you entered do not match. Please try again.");
|
||||
return;
|
||||
}
|
||||
|
||||
$scope.formData.confirmPassword = false;
|
||||
$scope.formData.status = "Generating Account Keys...";
|
||||
|
||||
$timeout(function(){
|
||||
|
||||
@@ -92,6 +92,10 @@ class ExtensionManager {
|
||||
*/
|
||||
retrieveExtensionFromServer(url, callback) {
|
||||
this.httpManager.getAbsolute(url, {}, function(response){
|
||||
if(typeof response !== 'object') {
|
||||
callback(null);
|
||||
return;
|
||||
}
|
||||
var ext = this.handleExtensionLoadExternalResponseItem(url, response);
|
||||
if(callback) {
|
||||
callback(ext);
|
||||
|
||||
@@ -28,7 +28,9 @@ class HttpManager {
|
||||
if (xmlhttp.readyState == 4) {
|
||||
var response = xmlhttp.responseText;
|
||||
if(response) {
|
||||
response = JSON.parse(response);
|
||||
try {
|
||||
response = JSON.parse(response);
|
||||
} catch(e) {}
|
||||
}
|
||||
|
||||
if(xmlhttp.status >= 200 && xmlhttp.status <= 299){
|
||||
|
||||
@@ -10,7 +10,7 @@ class SyncManager {
|
||||
}
|
||||
|
||||
get serverURL() {
|
||||
return localStorage.getItem("server") || "https://n3.standardnotes.org";
|
||||
return localStorage.getItem("server") || window._default_sf_server;
|
||||
}
|
||||
|
||||
get masterKey() {
|
||||
|
||||
Reference in New Issue
Block a user