Skip to content

Commit

Permalink
fix issue with unsupported startsWith on IE
Browse files Browse the repository at this point in the history
  • Loading branch information
morris committed May 19, 2020
1 parent 93b32c9 commit 84e91b3
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 137 deletions.
2 changes: 1 addition & 1 deletion dist/samd.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
})
);
} catch (err) {
if (!timedOut && err.message.startsWith('Undefined module')) {
if (!timedOut && err.message.slice(0, 16) === 'Undefined module') {
if (!pending) defineCallbacks.push(callback);
pending = true;

Expand Down
2 changes: 1 addition & 1 deletion dist/samd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 84e91b3

Please sign in to comment.