Skip to content

Commit f430e0b

Browse files
committed
Removed storageerror import
1 parent 39e265b commit f430e0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/storage/src/implementation/string.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { unknown, invalidFormat, StorageError } from './error';
18+
import { unknown, invalidFormat } from './error';
1919
import { decodeBase64 } from '../platform/base64';
2020

2121
/**
@@ -184,7 +184,7 @@ export function base64Bytes_(format: StringFormat, value: string): Uint8Array {
184184
try {
185185
bytes = decodeBase64(value);
186186
} catch (e) {
187-
if (e instanceof StorageError) {
187+
if ((e as Error).message.includes('polyfill')) {
188188
throw e;
189189
}
190190
console.log(e);

0 commit comments

Comments
 (0)