fix key derivation cache in IOS
This commit is contained in:
parent
a0c64ea88d
commit
005c7a2664
3 changed files with 8 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue