mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Adding support for "img" data type in
Bundle.add_resource.
This commit is contained in:
@@ -297,6 +297,8 @@ var Bundle = function () {
|
||||
if (w !== "client")
|
||||
throw new Error("HTML segments can only go to the client");
|
||||
self[options.type].push(data);
|
||||
} else if (options.type === "img") {
|
||||
self.files.client[options.path] = data;
|
||||
} else {
|
||||
throw new Error("Unknown type " + options.type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user