mirror of
https://github.com/status-im/codimd.git
synced 2025-02-17 02:36:23 +00:00
fix: code style
Signed-off-by: Max Wu <jackymaxj@gmail.com>
This commit is contained in:
parent
47bab4266b
commit
2b9affbc08
@ -260,12 +260,12 @@ if (typeof window.mermaid !== 'undefined' && window.mermaid) {
|
||||
}
|
||||
}
|
||||
|
||||
function jsonp(url, callback) {
|
||||
function jsonp (url, callback) {
|
||||
const callbackName = 'jsonp_callback_' + Math.round(1000000000 * Math.random())
|
||||
window[callbackName] = function (data) {
|
||||
delete window[callbackName]
|
||||
document.body.removeChild(script)
|
||||
callback(data)
|
||||
delete window[callbackName]
|
||||
document.body.removeChild(script)
|
||||
callback(data)
|
||||
}
|
||||
|
||||
const script = document.createElement('script')
|
||||
|
Loading…
x
Reference in New Issue
Block a user