Support esnext in storybook
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
// Copyright 2018 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import is from '@sindresorhus/is';
|
||||
|
||||
import type { MIMEType } from '../types/MIME';
|
||||
|
||||
export const arrayBufferToObjectURL = ({
|
||||
@@ -12,7 +10,7 @@ export const arrayBufferToObjectURL = ({
|
||||
data: ArrayBuffer;
|
||||
type: MIMEType;
|
||||
}): string => {
|
||||
if (!is.arrayBuffer(data)) {
|
||||
if (!(data instanceof ArrayBuffer)) {
|
||||
throw new TypeError('`data` must be an ArrayBuffer');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user