mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-09 13:51:57 -04:00
Move slide actions to own file
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
9d938c334a
commit
afb317b551
4 changed files with 87 additions and 85 deletions
|
@ -1,6 +1,4 @@
|
|||
'use strict'
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
|
||||
exports.isSQLite = function isSQLite (sequelize) {
|
||||
return sequelize.options.dialect === 'sqlite'
|
||||
|
@ -27,10 +25,3 @@ exports.getImageMimeType = function getImageMimeType (imagePath) {
|
|||
return undefined
|
||||
}
|
||||
}
|
||||
|
||||
exports.isRevealTheme = function isRevealTheme (theme) {
|
||||
if (fs.existsSync(path.join(__dirname, '..', 'public', 'build', 'reveal.js', 'css', 'theme', theme + '.css'))) {
|
||||
return theme
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue