Skip to content

Commit

Permalink
Fix port config for sql_client
Browse files Browse the repository at this point in the history
  • Loading branch information
7c00 authored and tdcmeehan committed Apr 10, 2024
1 parent 0879f02 commit ffc89b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion presto-main/src/main/resources/webapp/dist/sql_client.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import PrestoClient from "@prestodb/presto-js-client";
export function createClient(catalog: string, schema: string, sessions: string): PrestoClient {
const opt: PrestoClientConfig = {
host: `${window.location.protocol}//${window.location.hostname}`,
port: window.location.port,
port: (window.location.port || (window.location.protocol === 'https:' ? '443' : '80')),
user: 'prestoui',
};
if (catalog) {
Expand Down

0 comments on commit ffc89b9

Please sign in to comment.