X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Futilities%2FdragDropUpload%2FDragDirective.ts;h=d052b3f2c7cbb3708ed84fad9b94eca41dcdd835;hb=refs%2Fchanges%2F73%2F13273%2F3;hp=735ac7cfee2206129e30afeb84c716cb4254a163;hpb=40cc37ef2bbc4aac5debc9dea0baeb6dbd87a2d7;p=osm%2FNG-UI.git diff --git a/src/app/utilities/dragDropUpload/DragDirective.ts b/src/app/utilities/dragDropUpload/DragDirective.ts index 735ac7c..d052b3f 100644 --- a/src/app/utilities/dragDropUpload/DragDirective.ts +++ b/src/app/utilities/dragDropUpload/DragDirective.ts @@ -31,7 +31,6 @@ export interface FileHandle { * Creating Directive * @Directive for handling the files. */ -// tslint:disable-next-line:export-name @Directive({ selector: '[appDrag]' }) @@ -77,6 +76,7 @@ export class DragDirective { const files: FileHandle[] = []; Array.from(evt.dataTransfer.files).forEach((listFiles: File, index: number) => { const file: File = listFiles; + // eslint-disable-next-line @microsoft/sdl/no-angular-bypass-sanitizer const url: SafeUrl = this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(file)); files.push({ file, url }); });