forked from playcanvas/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml.js
More file actions
28 lines (23 loc) · 651 Bytes
/
html.js
File metadata and controls
28 lines (23 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
pc.extend(pc, function () {
'use strict';
var HtmlHandler = function () {};
HtmlHandler.prototype = {
load: function (url, callback) {
pc.http.get(url, function (err, response) {
if (!err) {
callback(null, response);
} else {
callback(pc.string.format("Error loading html resource: {0} [{1}]", url, err));
}
});
},
open: function (url, data) {
return data;
},
patch: function (asset, assets) {
}
};
return {
HtmlHandler: HtmlHandler
};
}());