diff --git a/app/scripts/controllers/bulkGenCtrl.js b/app/scripts/controllers/bulkGenCtrl.js index 21923949f4..4b1c3731e2 100644 --- a/app/scripts/controllers/bulkGenCtrl.js +++ b/app/scripts/controllers/bulkGenCtrl.js @@ -18,7 +18,7 @@ var bulkGenCtrl = function($scope) { $scope.wallets.push(tWallet); } $scope.showWallets = true; - $scope.bJSON = globalFuncs.getBlob("text/json;charset=UTF-8",JSON.stringify($scope.jsonWallets)); + $scope.bJSON = globalFuncs.getBlob("application/json;charset=UTF-8",JSON.stringify($scope.jsonWallets)); $scope.bTXT = globalFuncs.getBlob("text/plain;charset=UTF-8",txt); $scope.bCSV = globalFuncs.getBlob("text/csv;charset=UTF-8",csv); } diff --git a/app/scripts/controllers/viewWalletCtrl.js b/app/scripts/controllers/viewWalletCtrl.js index 56d575f927..2167ab8529 100644 --- a/app/scripts/controllers/viewWalletCtrl.js +++ b/app/scripts/controllers/viewWalletCtrl.js @@ -19,9 +19,9 @@ var viewWalletCtrl = function($scope, walletService) { $scope.wallet = walletService.wallet; $scope.wd = true; $scope.showEnc = walletService.password != ''; - if (walletService.wallet.type == "default") $scope.blob = globalFuncs.getBlob("text/json;charset=UTF-8", $scope.wallet.toJSON()); + if (walletService.wallet.type == "default") $scope.blob = globalFuncs.getBlob("application/json;charset=UTF-8", $scope.wallet.toJSON()); if (walletService.password != '') { - $scope.blobEnc = globalFuncs.getBlob("text/json;charset=UTF-8", $scope.wallet.toV3(walletService.password, { + $scope.blobEnc = globalFuncs.getBlob("application/json;charset=UTF-8", $scope.wallet.toV3(walletService.password, { kdf: globalFuncs.kdf, n: globalFuncs.scrypt.n })); diff --git a/app/scripts/controllers/walletGenCtrl.js b/app/scripts/controllers/walletGenCtrl.js index 0bc7e3e055..0459641be6 100644 --- a/app/scripts/controllers/walletGenCtrl.js +++ b/app/scripts/controllers/walletGenCtrl.js @@ -28,8 +28,8 @@ var walletGenCtrl = function($scope) { $scope.isDone = false; $scope.wallet = Wallet.generate(false); $scope.showWallet = true; - $scope.blob = globalFuncs.getBlob("text/json;charset=UTF-8", $scope.wallet.toJSON()); - $scope.blobEnc = globalFuncs.getBlob("text/json;charset=UTF-8", $scope.wallet.toV3($scope.password, { + $scope.blob = globalFuncs.getBlob("application/json;charset=UTF-8", $scope.wallet.toJSON()); + $scope.blobEnc = globalFuncs.getBlob("application/json;charset=UTF-8", $scope.wallet.toV3($scope.password, { kdf: globalFuncs.kdf, n: globalFuncs.scrypt.n }));