fix table of contents class name
This commit is contained in:
parent
eba23f41c6
commit
10aad88956
3 changed files with 6 additions and 11 deletions
|
@ -9,17 +9,12 @@ export default class PhotoPlayer {
|
|||
}
|
||||
|
||||
play(options) {
|
||||
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
import('slideshow').then(({default: slideshow}) => {
|
||||
|
||||
var index = options.startIndex || 0;
|
||||
|
||||
var apiClient = connectionManager.currentApiClient();
|
||||
|
||||
apiClient.getCurrentUser().then(function(result) {
|
||||
|
||||
var newSlideShow = new slideshow({
|
||||
showTitle: false,
|
||||
cover: false,
|
||||
|
@ -31,7 +26,6 @@ export default class PhotoPlayer {
|
|||
});
|
||||
|
||||
newSlideShow.show();
|
||||
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
|
@ -39,7 +33,6 @@ export default class PhotoPlayer {
|
|||
}
|
||||
|
||||
canPlayMediaType(mediaType) {
|
||||
|
||||
return (mediaType || '').toLowerCase() === 'photo';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue