style: auto-fix linting issues
This commit is contained in:
parent
bd121f5414
commit
19cecc0c76
3 changed files with 42 additions and 3 deletions
|
|
@ -134,7 +134,20 @@ class ServerAPI {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const _cr = ['emVl','em1j','emVlIG11c2lj','emVlIGVudGVydGFpbm1lbnQ=','emVlbA==','Ym9sbHl3b29kIG11c2ljIGluZGlh','emVlIHJlY29yZHM=','emluZyBtdXNpYw==','ZXRjIGJvbGx5d29vZA==','emVlIHN0dWRpb3M=','emluZGFnaSBtdXNpYw==','emVlNQ=='].map(atob);
|
const _cr = [
|
||||||
|
'emVl',
|
||||||
|
'em1j',
|
||||||
|
'emVlIG11c2lj',
|
||||||
|
'emVlIGVudGVydGFpbm1lbnQ=',
|
||||||
|
'emVlbA==',
|
||||||
|
'Ym9sbHl3b29kIG11c2ljIGluZGlh',
|
||||||
|
'emVlIHJlY29yZHM=',
|
||||||
|
'emluZyBtdXNpYw==',
|
||||||
|
'ZXRjIGJvbGx5d29vZA==',
|
||||||
|
'emVlIHN0dWRpb3M=',
|
||||||
|
'emluZGFnaSBtdXNpYw==',
|
||||||
|
'emVlNQ==',
|
||||||
|
].map(atob);
|
||||||
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
||||||
|
|
||||||
export async function onRequest(context) {
|
export async function onRequest(context) {
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,20 @@ class ServerAPI {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const _cr = ['emVl','em1j','emVlIG11c2lj','emVlIGVudGVydGFpbm1lbnQ=','emVlbA==','Ym9sbHl3b29kIG11c2ljIGluZGlh','emVlIHJlY29yZHM=','emluZyBtdXNpYw==','ZXRjIGJvbGx5d29vZA==','emVlIHN0dWRpb3M=','emluZGFnaSBtdXNpYw==','emVlNQ=='].map(atob);
|
const _cr = [
|
||||||
|
'emVl',
|
||||||
|
'em1j',
|
||||||
|
'emVlIG11c2lj',
|
||||||
|
'emVlIGVudGVydGFpbm1lbnQ=',
|
||||||
|
'emVlbA==',
|
||||||
|
'Ym9sbHl3b29kIG11c2ljIGluZGlh',
|
||||||
|
'emVlIHJlY29yZHM=',
|
||||||
|
'emluZyBtdXNpYw==',
|
||||||
|
'ZXRjIGJvbGx5d29vZA==',
|
||||||
|
'emVlIHN0dWRpb3M=',
|
||||||
|
'emluZGFnaSBtdXNpYw==',
|
||||||
|
'emVlNQ==',
|
||||||
|
].map(atob);
|
||||||
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
||||||
|
|
||||||
export async function onRequest(context) {
|
export async function onRequest(context) {
|
||||||
|
|
|
||||||
15
js/ui.js
15
js/ui.js
|
|
@ -51,7 +51,20 @@ import {
|
||||||
createTrackFromSong,
|
createTrackFromSong,
|
||||||
} from './tracker.js';
|
} from './tracker.js';
|
||||||
|
|
||||||
const _cr = ['emVl','em1j','emVlIG11c2lj','emVlIGVudGVydGFpbm1lbnQ=','emVlbA==','Ym9sbHl3b29kIG11c2ljIGluZGlh','emVlIHJlY29yZHM=','emluZyBtdXNpYw==','ZXRjIGJvbGx5d29vZA==','emVlIHN0dWRpb3M=','emluZGFnaSBtdXNpYw==','emVlNQ=='].map(atob);
|
const _cr = [
|
||||||
|
'emVl',
|
||||||
|
'em1j',
|
||||||
|
'emVlIG11c2lj',
|
||||||
|
'emVlIGVudGVydGFpbm1lbnQ=',
|
||||||
|
'emVlbA==',
|
||||||
|
'Ym9sbHl3b29kIG11c2ljIGluZGlh',
|
||||||
|
'emVlIHJlY29yZHM=',
|
||||||
|
'emluZyBtdXNpYw==',
|
||||||
|
'ZXRjIGJvbGx5d29vZA==',
|
||||||
|
'emVlIHN0dWRpb3M=',
|
||||||
|
'emluZGFnaSBtdXNpYw==',
|
||||||
|
'emVlNQ==',
|
||||||
|
].map(atob);
|
||||||
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
||||||
|
|
||||||
fontSettings.applyFont().catch(console.error);
|
fontSettings.applyFont().catch(console.error);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue