fix key derivation cache in IOS

This commit is contained in:
Matias Alejo Garcia 2016-06-09 17:47:27 -03:00
commit 005c7a2664
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
3 changed files with 8 additions and 5 deletions

View file

@ -5,10 +5,13 @@ angular.module('copayApp.services').factory('platformInfo', function($window) {
var ua = navigator ? navigator.userAgent : null;
if (!ua) {
console.log('Could not determine navigator. Using a random string');
ua = Math.floor(Math.random() * 100000);
console.log('Could not determine navigator. Using fixed string');
ua = 'dummy user-agent';
}
// Fixes IOS WebKit UA
ua = ua.replace(/\(\d+\)$/, '');
var isNodeWebkit = function() {
var isNode = (typeof process !== "undefined" && typeof require !== "undefined");
if (isNode) {