Skip to content

Commit c0a7003

Browse files
authored
Merge pull request #3264 from konqi/patch-1
don't use ES6 syntax in a dist package
2 parents 62785d1 + ab960e8 commit c0a7003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swagger-ui-dist-package/absolute-path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @return {string} When run in NodeJS env, returns the absolute path to the current directory
44
* When run outside of NodeJS, will return an error message
55
*/
6-
const getAbsoluteFSPath = () => {
6+
const getAbsoluteFSPath = function () {
77
// detect whether we are running in a browser or nodejs
88
if (typeof module !== "undefined" && module.exports) {
99
return require("path").resolve(__dirname)

0 commit comments

Comments
 (0)