added lowercase transformation

This commit is contained in:
Nicolas Constant 2019-06-01 15:50:08 -04:00
parent 656e2dca00
commit 9c87d6baa5
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ export class AddNewAccountComponent implements OnInit {
} }
private checkBlockList(instance: string){ private checkBlockList(instance: string){
let cleanInstance = instance.replace('http://', '').replace('https://', ''); let cleanInstance = instance.replace('http://', '').replace('https://', '').toLowerCase();
for (let b of this.blockList) { for (let b of this.blockList) {
if (cleanInstance == b || cleanInstance.includes(`.${b}`)) { if (cleanInstance == b || cleanInstance.includes(`.${b}`)) {
let content = '<div style="width:100%; height:100%; background-color: black;"><iframe style="pointer-events: none;" width="100%" height="100%" src="https://www.youtube.com/embed/dQw4w9WgXcQ?rel=0&autoplay=1&showinfo=0&controls=0" allow="autoplay; fullscreen"></div>'; let content = '<div style="width:100%; height:100%; background-color: black;"><iframe style="pointer-events: none;" width="100%" height="100%" src="https://www.youtube.com/embed/dQw4w9WgXcQ?rel=0&autoplay=1&showinfo=0&controls=0" allow="autoplay; fullscreen"></div>';