browser test

This commit is contained in:
Marc Wäckerlin
2016-11-28 23:22:59 +00:00
parent ded3085d90
commit 94b952fbcc
6 changed files with 24 additions and 4 deletions

View File

@@ -42,6 +42,13 @@ function SafeChatClient(success, notice, error) {
/// Cache Client's Key from local Strorage
var k = null;
function browserSupported() {
window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB
window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction
window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange || window.msIDBKeyRange
return window.indexedDB && window.crypto.getRandomValues && Storage
}
/// Get User Key
/** @internal key ist cached in k
@return key */