mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Define packaging for iframe JS in the same way as pad.js and timeslider.js.
This commit is contained in:
parent
458b5a4f03
commit
348e7ef1d5
3 changed files with 38 additions and 36 deletions
|
@ -239,9 +239,15 @@ function getAceFile(callback) {
|
|||
// the kernel isn’t actually on the file system.
|
||||
handleEmbed(null, requireDefinition());
|
||||
} else {
|
||||
fs.readFile(ROOT_DIR + filename, "utf8", function (error, data) {
|
||||
handleEmbed(error, isolateJS(data, shortFilename));
|
||||
});
|
||||
var contents = '';
|
||||
tarCode(tar[shortFilename] || shortFilename
|
||||
, function (content) {
|
||||
contents += content;
|
||||
}
|
||||
, function () {
|
||||
handleEmbed(null, contents);
|
||||
}
|
||||
);
|
||||
}
|
||||
} else {
|
||||
fs.readFile(ROOT_DIR + filename, "utf8", handleEmbed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue