We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47bab42 commit 2b9affbCopy full SHA for 2b9affb
1 file changed
public/js/extra.js
@@ -260,12 +260,12 @@ if (typeof window.mermaid !== 'undefined' && window.mermaid) {
260
}
261
262
263
-function jsonp(url, callback) {
+function jsonp (url, callback) {
264
const callbackName = 'jsonp_callback_' + Math.round(1000000000 * Math.random())
265
window[callbackName] = function (data) {
266
- delete window[callbackName]
267
- document.body.removeChild(script)
268
- callback(data)
+ delete window[callbackName]
+ document.body.removeChild(script)
+ callback(data)
269
270
271
const script = document.createElement('script')
0 commit comments