Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createDropzone () {
const dropCtrl = new SimpleDropzone(this.dropEl, this.inputEl);
dropCtrl.on('drop', ({files}) => this.load(files));
dropCtrl.on('dropstart', () => this.showSpinner());
dropCtrl.on('droperror', () => this.hideSpinner());
}