drop config, had no effect in modern browsers

This commit is contained in:
Hakim El Hattab 2020-03-06 10:22:53 +01:00
parent 556d6ec93d
commit d545d79cd7
2 changed files with 0 additions and 34 deletions

View file

@ -398,9 +398,6 @@ Reveal.initialize({
// Time before the cursor is hidden (in ms) // Time before the cursor is hidden (in ms)
hideCursorTime: 5000, hideCursorTime: 5000,
// Hides the address bar on mobile devices
hideAddressBar: true,
// Opens links in an iframe preview overlay // Opens links in an iframe preview overlay
// Add `data-preview-link` and `data-preview-link="false"` to customise each link // Add `data-preview-link` and `data-preview-link="false"` to customise each link
// individually // individually

View file

@ -246,9 +246,6 @@
// Apply a 3D roll to links on hover // Apply a 3D roll to links on hover
rollingLinks: false, rollingLinks: false,
// Hides the address bar on mobile devices
hideAddressBar: true,
// Opens links in an iframe preview overlay // Opens links in an iframe preview overlay
// Add `data-preview-link` and `data-preview-link="false"` to customise each link // Add `data-preview-link` and `data-preview-link="false"` to customise each link
// individually // individually
@ -479,9 +476,6 @@
extend( config, options ); extend( config, options );
extend( config, query ); extend( config, query );
// Hide the address bar in mobile browsers
hideAddressBar();
// Loads dependencies and continues to #start() once done // Loads dependencies and continues to #start() once done
load(); load();
@ -1979,31 +1973,6 @@
} }
/**
* Hides the address bar if we're on a mobile device.
*/
function hideAddressBar() {
if( config.hideAddressBar && isMobileDevice ) {
// Events that should trigger the address bar to hide
window.addEventListener( 'load', removeAddressBar, false );
window.addEventListener( 'orientationchange', removeAddressBar, false );
}
}
/**
* Causes the address bar to hide on mobile devices,
* more vertical space ftw.
*/
function removeAddressBar() {
setTimeout( function() {
window.scrollTo( 0, 1 );
}, 10 );
}
/** /**
* Dispatches an event of the specified type from the * Dispatches an event of the specified type from the
* reveal DOM element. * reveal DOM element.