mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-14 16:35:07 +01:00
fix preload bug
This commit is contained in:
parent
e49e89a557
commit
97f2e184c1
6 changed files with 139 additions and 102 deletions
|
|
@ -25,8 +25,12 @@ export default class SlideContent {
|
|||
*/
|
||||
shouldPreload( element ) {
|
||||
|
||||
if( this.Reveal.isReaderMode() ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Prefer an explicit global preload setting
|
||||
let preload = this.Reveal.getConfig().preloadIframes || this.Reveal.isReaderMode();
|
||||
let preload = this.Reveal.getConfig().preloadIframes;
|
||||
|
||||
// If no global setting is available, fall back on the element's
|
||||
// own preload setting
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue