(change): Embedding TLS policy
This commit is contained in:
1 parent
17061e5c37
commit
19eab77cc6
2 files changed
+10
-2
No files matched your search
@@ -4,6 +4,14 @@ import { randomUUID } from 'crypto';
|
||||
|
||||
export const init = async () => {
|
||||
env.PUBLIC_TAM_CLIENT_ID = randomUUID();
|
||||
const originalEmitWarning = process.emitWarning;
|
||||
process.emitWarning = (warning, ...args) => {
|
||||
if (typeof warning === 'string' && warning.includes('NODE_TLS_REJECT_UNAUTHORIZED')) {
|
||||
return;
|
||||
};
|
||||
originalEmitWarning.call(process, warning, ...args);
|
||||
};
|
||||
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;
|
||||
await db.run(`CREATE TABLE IF NOT EXISTS baskets (
|
||||
prefix text,
|
||||
b_id integer,
|
||||
|
||||
@@ -218,10 +218,10 @@
|
||||
item.changed = true;
|
||||
}}
|
||||
onkeydown={(e) => {
|
||||
if (e.key == 't') {
|
||||
if (e.key == 't' || e.key == 'T') {
|
||||
if (item.pref != 'TEXT') item.changed = true;
|
||||
item.pref = 'TEXT';
|
||||
} else if (e.key == 'c') {
|
||||
} else if (e.key == 'c' || e.key == 'C') {
|
||||
if (item.pref != 'CALL') item.changed = true;
|
||||
item.pref = 'CALL';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user