File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -230,11 +230,16 @@ class Asset extends EventHandler {
230
230
* @private
231
231
* @function
232
232
* @name Asset#getAbsoluteUrl
233
- * @description Construct an asset URL from this asset's location and a relative path.
233
+ * @description Construct an asset URL from this asset's location and a relative path. If the relativePath is a
234
+ * blob or Base64 URI, then return that instead.
234
235
* @param {string } relativePath - The relative path to be concatenated to this asset's base url.
235
236
* @returns {string } Resulting URL of the asset.
236
237
*/
237
238
getAbsoluteUrl ( relativePath ) {
239
+ if ( relativePath . startsWith ( 'blob:' ) || relativePath . startsWith ( 'data:' ) ) {
240
+ return relativePath ;
241
+ }
242
+
238
243
var base = path . getDirectory ( this . file . url ) ;
239
244
return path . join ( base , relativePath ) ;
240
245
}
You can’t perform that action at this time.
0 commit comments