Fix isses loading site in safari browser

-Safari behaves differently than other browsers and seems to require the url prefix to be present when loading external libraries to prevent CORS errors
This commit is contained in:
joeuhren
2021-05-09 18:10:11 -06:00
parent 8af8b78627
commit 975a34f192
+5 -5
View File
@@ -6,15 +6,15 @@ html(lang='en')
meta(http-equiv='Content-Language', content='en')
title=settings.shared_pages.page_title
link(rel='stylesheet', href='/css/themes/' + settings.shared_pages.theme + '/bootstrap.min.css')
link(rel='stylesheet', href='//use.fontawesome.com/releases/v5.15.1/css/all.css')
link(rel='stylesheet', href='https://use.fontawesome.com/releases/v5.15.1/css/all.css')
if active == 'markets' || active == 'richlist'
link(rel='stylesheet', href='/css/jquery.jqplot.min.css')
if active == 'network'
link(rel='stylesheet', href='/css/flag-icon.min.css')
link(rel='stylesheet', type='text/css', href='//cdn.datatables.net/v/bs4/dt-1.10.22/datatables.min.css')
link(rel='stylesheet', type='text/css', href='https://cdn.datatables.net/v/bs4/dt-1.10.22/datatables.min.css')
link(rel='stylesheet', href='/css/style.min.css')
script(type='text/javascript', src='//cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js', integrity='sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==', crossorigin='anonymous')
script(type='text/javascript', src='//cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js', integrity='sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx', crossorigin='anonymous')
script(type='text/javascript', src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js', integrity='sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==', crossorigin='anonymous')
script(type='text/javascript', src='https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js', integrity='sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx', crossorigin='anonymous')
if active == 'markets' || active == 'richlist'
script(type='text/javascript', src='/js/jquery.jqplot.min.js')
if active == 'markets'
@@ -23,7 +23,7 @@ html(lang='en')
script(type='text/javascript', src='/js/jqplot.highlighter.min.js')
if active == 'richlist'
script(type='text/javascript', src='/js/jqplot.pieRenderer.min.js')
script(type='text/javascript', src='//cdn.datatables.net/v/bs4/dt-1.10.22/datatables.min.js')
script(type='text/javascript', src='https://cdn.datatables.net/v/bs4/dt-1.10.22/datatables.min.js')
if active == 'reward'
script(type='text/javascript', src='/js/Chart.min.js')
- var showPanels = false