Renaming key within fragmentData
Might be better to use one variable with different values.
This commit is contained in:
parent
d02e64adbd
commit
82bd8e4fb0
2 changed files with 4 additions and 4 deletions
|
@ -128,10 +128,10 @@
|
|||
console.dir(data);
|
||||
if (data.socketId !== socketId) { return; }
|
||||
|
||||
if (data.showFragment === true) {
|
||||
if (data.fragment === 'next') {
|
||||
currentSlide.contentWindow.Reveal.nextFragment();
|
||||
}
|
||||
else if (data.hideFragment === true) {
|
||||
else if (data.fragment === 'previous') {
|
||||
currentSlide.contentWindow.Reveal.previousFragment();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue