Convert the Windows-styled path from Assets.get* calls

This commit is contained in:
Slava Kim
2015-02-07 08:54:44 -08:00
parent 8e8ee3eca4
commit d07ff8e99c

View File

@@ -1285,6 +1285,7 @@ _.extend(JsImage.prototype, {
// XXX This is mostly duplicated from server/boot.js, as is Npm.require
// below. Some way to avoid this?
var getAsset = function (assets, assetPath, encoding, callback) {
assetPath = files.convertToStandardPath(assetPath);
var fut;
if (! callback) {
if (! Fiber.current)