We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 497931b commit 66de500Copy full SHA for 66de500
1 file changed
src/_shared/frametrail-core/storage/StorageAdapterDownload.js
@@ -80,6 +80,14 @@ class StorageAdapterDownload extends StorageAdapter {
80
: '';
81
var cdnBase = 'https://cdn.jsdelivr.net/npm/@frametrail/frametrail' + version + '/';
82
83
+ // If the hypervideo has no per-hypervideo theme, write the global defaultTheme
84
+ // into the exported data so the standalone HTML uses the correct theme.
85
+ var hvConfig = Database.hypervideos[hypervideoID] && Database.hypervideos[hypervideoID].config;
86
+ if (hvConfig && !hvConfig.theme && fullConfig.defaultTheme) {
87
+ hvData.config = hvData.config || {};
88
+ hvData.config.theme = fullConfig.defaultTheme;
89
+ }
90
+
91
var annotations = Database.getAnnotationsW3C();
92
var contentItem = { hypervideo: hvData };
93
if (annotations.length > 0) {
0 commit comments