File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ class ApprovedExternalScripts(presalytics.lib.plugins.base.ScriptPlugin):
135135 'mpld3' : '{0}/static/mpld3/mpld3.min.js' .format (site_host ),
136136 'ooxml' : '{0}/static/js/ooxml.js' .format (site_host ),
137137 'mpl-responsive' : '{0}/static/js/mpl-responsive.js' .format (site_host ),
138+ 'events' : '{0}/static/js/events.js' .format (site_host ),
138139 'jquery' : 'https://code.jquery.com/jquery-3.4.1.min.js' ,
139140 'popper' : 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js' ,
140141 'bootstrap4' : 'https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js' ,
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ def standalone_html(self) -> str:
226226 "c3_styles_url" : presalytics .lib .plugins .external .ApprovedExternalLinks ().attr_dict .flatten ().get ('c3' ),
227227 "c3_script_url" : presalytics .lib .plugins .external .ApprovedExternalScripts ().attr_dict .flatten ().get ('c3' ),
228228 "d3_url" : presalytics .lib .plugins .external .ApprovedExternalScripts ().attr_dict .flatten ().get ('d3' ),
229- "events_url" : presalytics .lib .plugins .external .ApprovedExternalScripts ().attr_dict .flatten ().get ('events' ). format ( story_host ) ,
229+ "events_url" : presalytics .lib .plugins .external .ApprovedExternalScripts ().attr_dict .flatten ().get ('events' ),
230230 "data" : data ,
231231 "css" : extra_css
232232 }
Original file line number Diff line number Diff line change @@ -278,6 +278,6 @@ def standalone_html(self) -> str:
278278 "script" : script ,
279279 "css" : extra_css ,
280280 "html_fragment" : html_fragment ,
281- "events_url" : presalytics .lib .plugins .external .ApprovedExternalScripts ().attr_dict .flatten ().get ('events' ). format ( story_host ) ,
281+ "events_url" : presalytics .lib .plugins .external .ApprovedExternalScripts ().attr_dict .flatten ().get ('events' ),
282282 }
283283 return SIMPLE_HTML .render (** context )
You can’t perform that action at this time.
0 commit comments