We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62785d1 commit ab960e8Copy full SHA for ab960e8
swagger-ui-dist-package/absolute-path.js
@@ -3,7 +3,7 @@
3
* @return {string} When run in NodeJS env, returns the absolute path to the current directory
4
* When run outside of NodeJS, will return an error message
5
*/
6
-const getAbsoluteFSPath = () => {
+const getAbsoluteFSPath = function () {
7
// detect whether we are running in a browser or nodejs
8
if (typeof module !== "undefined" && module.exports) {
9
return require("path").resolve(__dirname)
0 commit comments