reveal.js Maximum call stack size exceeded error

Maximum call stack size exceeded error

I added width and height value in settings. And I get some error:

reveal.js:1980 Uncaught RangeError: Maximum call stack size exceeded.
    at dispatchEvent (reveal.js:1980)
    at layout (reveal.js:2296)
    at onWindowResize (reveal.js:5527)
    at dispatchEvent (reveal.js:1980)
    at layout (reveal.js:2296)
    at onWindowResize (reveal.js:5527)
    at dispatchEvent (reveal.js:1980)
    at layout (reveal.js:2296)
    at onWindowResize (reveal.js:5527)
    at dispatchEvent (reveal.js:1980)

In order to fix it, go to line 2295 in reveal.js file. And replace if condition like this:

if( oldScale !== scale && typeof event == 'undefined' ) {
    dispatchEvent( 'resize', {
        'oldScale': oldScale,
        'scale': scale,
        'size': size
    } );
}

Yorumlar