browser test
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user