Skip to content

Commit

Permalink
remove query param to avoid asset reload unecesarily
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Mar 12, 2024
1 parent 5fd1283 commit 4172148
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
connect-branch: development
advanced-tools-branch: advanced-tools
environment: Cloudflare-Preview
public-url: ""
public-url: "/${{ needs.branch-sha.outputs.value }}"
wac-url: "https://wac.gfx.xyz"
project-branch: ${{ github.event.pull_request.head.ref }}
app-domain: preview.portalbridge.com
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
connect-branch: development
advanced-tools-branch: advanced-tools
environment: Cloudflare-Testnet
public-url: ""
public-url: "/${{ needs.branch-sha.outputs.value }}"
project-branch: ${{ github.event.pull_request.head.ref }}
app-domain: testnet.portalbridge.com
secrets: inherit
Expand Down
4 changes: 2 additions & 2 deletions apps/connect/src/components/ConnectLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function ConnectLoader({ config }: WormholeLoaderProps) {

useEffect(() => {
const script = document.createElement("script");
script.src = `assets/wormhole-connect/main.js?id=${VITE_APP_JS_WC_INTEGRITY_SHA_384}`;
script.src = `assets/wormhole-connect/main.js`;
script.type = "module";
if (VITE_APP_JS_WC_INTEGRITY_SHA_384) {
script.integrity = `sha384-${VITE_APP_JS_WC_INTEGRITY_SHA_384}`;
Expand All @@ -32,7 +32,7 @@ export default function ConnectLoader({ config }: WormholeLoaderProps) {
script.onload = () => setLoading(false);
const link = document.createElement("link");
link.rel = "stylesheet";
link.href = `assets/wormhole-connect/main.css?id=${VITE_APP_CSS_WC_INTEGRITY_SHA_384}`;
link.href = `assets/wormhole-connect/main.css`;
if (VITE_APP_CSS_WC_INTEGRITY_SHA_384) {
link.integrity = `sha384-${VITE_APP_CSS_WC_INTEGRITY_SHA_384}`;
}
Expand Down

0 comments on commit 4172148

Please sign in to comment.