Skip to content

Commit

Permalink
disabling dark background in iframe embeds for EDU
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Aug 28, 2024
1 parent 67f4789 commit a9de6ba
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
v-if="data.url"
class="print:border print:border-gray-dark"
aspect-ratio="16:9"
dark-mode
:dark-mode="!themeStore.isEdu"
>
<div>
<iframe
Expand Down Expand Up @@ -48,6 +48,8 @@
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import { mapStores } from 'pinia'
import { useThemeStore } from '../../store/theme'
import BaseImageCaption from './../BaseImageCaption/BaseImageCaption.vue'
import BaseImagePlaceholder from './../BaseImagePlaceholder/BaseImagePlaceholder.vue'
Expand Down Expand Up @@ -81,6 +83,9 @@ export default defineComponent({
this.lazyNative = false
}
}
},
computed: {
...mapStores(useThemeStore)
}
})
</script>

0 comments on commit a9de6ba

Please sign in to comment.