From 975a34f192db7cd4c41b7d635544a13c48d35cd2 Mon Sep 17 00:00:00 2001 From: joeuhren Date: Sun, 9 May 2021 18:10:11 -0600 Subject: [PATCH] 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 --- views/layout.pug | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/views/layout.pug b/views/layout.pug index 89cda80..b4367f0 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -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