Update app.js

This commit is contained in:
Namhyeon Go 2023-12-11 11:40:31 +09:00 committed by GitHub
parent 4e3b7f7aee
commit 7659507e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
app.js
View File

@ -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() {