Skip to content

Commit

Permalink
Fix EUI code
Browse files Browse the repository at this point in the history
  • Loading branch information
bherr2 committed Jan 18, 2024
1 parent af40381 commit 606124a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ app.use(
useDefaults: true,
directives: {
'base-uri': ["'self'", 'cdn.jsdelivr.net'],
'script-src': ["'self'", "'unsafe-eval'", 'cdn.jsdelivr.net', 'unpkg.com', 'www.googletagmanager.com'],
'script-src': ["'self'", "'unsafe-inline'", "'unsafe-eval'", 'cdn.jsdelivr.net', 'unpkg.com', 'www.googletagmanager.com'],
'img-src': ["'self'", "'unsafe-eval'", 'cdn.jsdelivr.net', 'unpkg.com', 'www.googletagmanager.com'],
'connect-src': ['*'],
},
Expand Down
4 changes: 2 additions & 2 deletions src/server/routes/eui.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const euiRoute = (_req, res, _next) => {
<head>
<meta charset="utf-8">
<title>HRA Exploration User Interface</title>
<base href="https://cdn.jsdelivr.net/gh/hubmapconsortium/ccf-ui@3/">
<base href="https://cdn.jsdelivr.net/gh/hubmapconsortium/ccf-ui@gh-pages/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&amp;display=swap" rel="stylesheet">
Expand All @@ -15,7 +15,7 @@ const euiRoute = (_req, res, _next) => {
<script src="wc.js" async></script>
</head>
<body>
<ccf-eui use-remote-api="true" remote-api-endpoint="http://localhost:3000/v1" hubmap-data-url="" login-disabled="true" logo-tooltip=""></ccf-eui>
<ccf-eui use-remote-api="true" hubmap-data-url="" login-disabled="true" logo-tooltip=""></ccf-eui>
<script>
window.addEventListener('DOMContentLoaded', () => {
const eui = document.querySelector('ccf-eui');
Expand Down

0 comments on commit 606124a

Please sign in to comment.