Skip to content

Commit 8948c12

Browse files
committed
Removed not needed load
1 parent 339b6b5 commit 8948c12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

swagger/swagger.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
swaggerUi.load();
119119
}
120120
});
121+
121122
swaggerDocUrl = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port + RED.settings.httpNodeRoot + 'http-api/swagger.json';
122123
var swaggerFrame = $("<iframe/>", {
123124
id:"swagger-ui-frame",
@@ -131,11 +132,12 @@
131132
content: content,
132133
iconClass: "fa fa-file-text-o"
133134
});
134-
135+
/*
135136
swaggerFrame.load(function(){
136137
swaggerUi = document.getElementById('swagger-ui-frame').contentWindow.swaggerUi;
137138
swaggerUi.load();
138139
});
140+
*/
139141
},
140142
oneditprepare: function() {
141143

0 commit comments

Comments
 (0)