Skip to content

Commit a1f03cb

Browse files
committed
Reveal.VERSION is now available prior to initialization #2651
1 parent feb43ff commit a1f03cb

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

dist/reveal.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/reveal.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Deck from './reveal.js'
1+
import Deck, { VERSION } from './reveal.js'
22

33
/**
44
* Expose the Reveal class to the window. To create a
@@ -51,4 +51,6 @@ Reveal.initialize = options => {
5151
}
5252
} );
5353

54+
Reveal.VERSION = VERSION;
55+
5456
export default Reveal;

js/reveal.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ import {
2525
POST_MESSAGE_METHOD_BLACKLIST
2626
} from './utils/constants.js'
2727

28+
// The reveal.js version
29+
export const VERSION = '4.0.0-rc.1';
30+
2831
/**
2932
* reveal.js
3033
* https://revealjs.com
@@ -43,9 +46,6 @@ export default function( revealElement, options ) {
4346

4447
const Reveal = {};
4548

46-
// The reveal.js version
47-
const VERSION = '4.0.0-rc.1';
48-
4949
// Configuration defaults, can be overridden at initialization time
5050
let config,
5151

0 commit comments

Comments
 (0)