mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update app.js
This commit is contained in:
parent
4e3b7f7aee
commit
7659507e9e
3
app.js
3
app.js
|
@ -288,8 +288,7 @@ require.__ModulePrototype__ = function() {
|
|||
this.exports = {};
|
||||
};
|
||||
require.__getDirName__ = function(path) {
|
||||
var delimiter = "\\";
|
||||
var pos = path.lastIndexOf(delimiter);
|
||||
var pos = Math.max.apply(null, [path.lastIndexOf("\\"), path.lastIndexOf("/")]);
|
||||
return (pos > -1 ? path.substring(0, pos) : "");
|
||||
};
|
||||
require.__getCurrentScriptDirectory__ = function() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user