mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-13 07:47:05 +08:00
* CB-2907 feat: active views list * CB-2907 fix: validate execution context & display message that multi-tab is not supported * CB-2907 fix: display multi-tab not supported message only for main app screen * CB-2907 fix: disable multi-tab message * CB-2907 fix: tests
26 lines
524 B
TypeScript
26 lines
524 B
TypeScript
/*
|
|
* CloudBeaver - Cloud Database Manager
|
|
* Copyright (C) 2020-2022 DBeaver Corp and others
|
|
*
|
|
* Licensed under the Apache License, Version 2.0.
|
|
* you may not use this file except in compliance with the License.
|
|
*/
|
|
|
|
import 'reflect-metadata';
|
|
import crypto from 'crypto';
|
|
|
|
Object.defineProperty(global.self, 'crypto', {
|
|
value: {
|
|
getRandomValues: arr => crypto.randomBytes(arr.length),
|
|
},
|
|
});
|
|
|
|
class BroadcastChannel {
|
|
|
|
}
|
|
|
|
Object.defineProperty(global.self, 'BroadcastChannel', {
|
|
value: BroadcastChannel,
|
|
});
|
|
|