mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
Update pipe-ipc.js
This commit is contained in:
parent
20ac966a61
commit
ea5a70e03d
|
@ -436,6 +436,8 @@ function PipeIPC() {
|
|||
};
|
||||
|
||||
this.readTextFromFile = function(filename, charset) {
|
||||
charset = (typeof charset !== "undefined" ? charset : this.charset);
|
||||
|
||||
var text = '';
|
||||
|
||||
var isFileExists = checkFileExists(filename);
|
||||
|
@ -463,12 +465,14 @@ function PipeIPC() {
|
|||
};
|
||||
|
||||
this.loadFromFile = function(filename, charset) {
|
||||
charset = (typeof charset !== "undefined" ? this.charset : charset);
|
||||
charset = (typeof charset !== "undefined" ? charset : this.charset);
|
||||
|
||||
this.write(this.readTextFromFile(filename, charset), ForWriting);
|
||||
};
|
||||
|
||||
this.reload = function(charset) {
|
||||
charset = (typeof charset !== "undefined" ? this.charset : charset);
|
||||
charset = (typeof charset !== "undefined" ? charset : this.charset);
|
||||
|
||||
this.loadFromFile(this.path, charset);
|
||||
};
|
||||
}
|
||||
|
@ -498,7 +502,7 @@ exports.adSaveCreateNotExist = adSaveCreateNotExist;
|
|||
exports.adSaveCreateOverWrite = adSaveCreateOverWrite;
|
||||
exports.adModeReadWrite = adModeReadWrite;
|
||||
|
||||
exports.VERSIONINFO = "PIPE-based IPC Module (pipe-ipc.js) version 0.1.18";
|
||||
exports.VERSIONINFO = "PIPE-based IPC Module (pipe-ipc.js) version 0.1.19";
|
||||
exports.AUTHOR = "abuse@catswords.net";
|
||||
exports.global = global;
|
||||
exports.require = require;
|
||||
|
|
Loading…
Reference in New Issue
Block a user