Show More
@@ -859,16 +859,17 b' _css_t = """var link = document.createElement("link");' | |||
|
859 | 859 | document.head.appendChild(link); |
|
860 | 860 | """ |
|
861 | 861 | |
|
862 | _lib_t1 = """var script = document.createElement("script"); | |
|
863 | script.type = "text/javascript"; | |
|
862 | _lib_t1 = """new Promise(function(resolve, reject) { | |
|
863 | var script = document.createElement("script"); | |
|
864 | script.onload = resolve; | |
|
865 | script.onerror = reject; | |
|
864 | 866 | script.src = "%s"; |
|
865 | script.onload = script.onreadystatechange = function() { | |
|
866 | if (!this.readyState || this.readyState == 'complete') { | |
|
867 | document.head.appendChild(script); | |
|
868 | }).then(() => { | |
|
867 | 869 | """ |
|
868 | 870 | |
|
869 |
_lib_t2 = """ |
|
|
870 | }; | |
|
871 | document.head.appendChild(script);""" | |
|
871 | _lib_t2 = """ | |
|
872 | });""" | |
|
872 | 873 | |
|
873 | 874 | class GeoJSON(JSON): |
|
874 | 875 | """GeoJSON expects JSON-able dict |
General Comments 0
You need to be logged in to leave comments.
Login now