mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-7100] ESLint support for ADF Core and DemoShell projects (#7481)
* remove tsconfig.base as per eslint schematics * add schematics * upgrade demoshell to eslint * fix eslint issues for demoshell * integrate eslint for ADF core and fix some issues * turn into warn * fix code * workaround for Chrome clipboard issue * exclude e2e tests * exclude e2e
This commit is contained in:
@@ -21,7 +21,7 @@ import { Injectable } from '@angular/core';
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class DownloadService {
|
||||
private readonly saveData: Function;
|
||||
private readonly saveData: any;
|
||||
|
||||
constructor() {
|
||||
this.saveData = (function() {
|
||||
@@ -44,9 +44,9 @@ export class DownloadService {
|
||||
if (blob) {
|
||||
if (
|
||||
typeof window.navigator !== 'undefined' &&
|
||||
window.navigator.msSaveOrOpenBlob
|
||||
window.navigator['msSaveOrOpenBlob']
|
||||
) {
|
||||
navigator.msSaveOrOpenBlob(blob, fileName);
|
||||
window.navigator['msSaveOrOpenBlob'](blob, fileName);
|
||||
} else {
|
||||
const url = window.URL.createObjectURL(blob);
|
||||
a.href = url;
|
||||
|
Reference in New Issue
Block a user