Skip to content

Commit 8c0722a

Browse files
Update widget tagline link and enable MNE CORS
- Widget footer now links to osc.earth/osa/ instead of GitHub - Add "(osc.earth/osa)" text to footer tagline - Uncomment MNE CORS origins to allow widget embedding on mne.tools
1 parent de38d87 commit 8c0722a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

frontend/osa-chat-widget.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
// These are sent to the backend as part of page_context
4949
widgetInstructions: null,
5050
showExperimentalBadge: true,
51-
repoUrl: 'https://github.com/OpenScience-Collective/osa',
51+
repoUrl: 'https://osc.earth/osa/',
5252
repoName: 'Open Science Assistant',
5353
// Page context awareness - sends current page URL/title to help the assistant
5454
// provide more contextually relevant answers
@@ -1930,7 +1930,7 @@
19301930
</div>
19311931
<div class="osa-chat-footer">
19321932
<a href="${escapeHtml(CONFIG.repoUrl)}" target="_blank" rel="noopener noreferrer">
1933-
Powered by ${escapeHtml(CONFIG.repoName)}<span class="osa-version"></span>
1933+
Powered by ${escapeHtml(CONFIG.repoName)} (osc.earth/osa)<span class="osa-version"></span>
19341934
</a>
19351935
</div>
19361936
<div class="osa-settings-overlay">

src/assistants/mne/config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ widget:
2828
- How do I perform source localization?
2929
- How do I do time-frequency analysis?
3030

31-
# TODO: MNE maintainers to submit PR adding CORS origins for mne.tools
32-
# cors_origins:
33-
# - https://mne.tools
34-
# - https://*.mne.tools
31+
cors_origins:
32+
- https://mne.tools
33+
- https://*.mne.tools
3534

3635
# Budget limits for cost management
3736
budget:

0 commit comments

Comments
 (0)