How to use the @tanker/global-this.FileReader function in @tanker/global-this

To help you get started, we’ve selected a few @tanker/global-this examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TankerHQ / sdk-js / packages / file-reader / src / FileReader.js View on Github external
constructor(source: Blob | File) {
    this._source = source;

    this._reader = new globalThis.FileReader();
    this._reader.addEventListener('load', this._onLoad.bind(this));
    this._reader.addEventListener('error', this._onError.bind(this));
    this._reader.addEventListener('abort', this._onError.bind(this));
  }

@tanker/global-this

Tanker SDK (global-this)

Apache-2.0
Latest version published 5 months ago

Package Health Score

71 / 100
Full package analysis

Similar packages