From bdd99029d443324833a0b2975e943a3245edd49e Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Fri, 4 Oct 2024 19:20:27 -0500 Subject: [PATCH] Adjust javascript to account for using static paths instead of urls --- src/pgwui_sql/templates/sql.mak | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pgwui_sql/templates/sql.mak b/src/pgwui_sql/templates/sql.mak index ae5020e..54c134f 100644 --- a/src/pgwui_sql/templates/sql.mak +++ b/src/pgwui_sql/templates/sql.mak @@ -48,11 +48,15 @@ return '${request.route_path("pgwui_sql_edit")|n}'; } function pgwuiSqlShowWhitespaceURL() { - return '${request.static_path( + return document.location.protocol + '//' + + document.location.host + + '${request.static_path( "pgwui_sql:static/show_whitespace.css")}'; } function pgwuiSqlBackgroundRulesURL() { - return '${request.static_path( + return document.location.protocol + '//' + + document.location.host + + '${request.static_path( "pgwui_sql:static/background_rules.css")}'; } // Set window name so that the sql_edit window can vary the target -- 2.34.1