| // Copyright 2017 The Emscripten Authors. All rights reserved. | |
| // Emscripten is available under two separate licenses, the MIT license and the | |
| // University of Illinois/NCSA Open Source License. Both these licenses can be | |
| // found in the LICENSE file. | |
| // Prefix of data URIs emitted by SINGLE_FILE and related options. | |
| var dataURIPrefix = 'data:application/octet-stream;base64,'; | |
| // Indicates whether filename is a base64 data URI. | |
| function isDataURI(filename) { | |
| return String.prototype.startsWith ? | |
| filename.startsWith(dataURIPrefix) : | |
| filename.indexOf(dataURIPrefix) === 0; | |
| } | |