mirror of https://github.com/FreeTubeApp/FreeTube
20 lines
459 B
JavaScript
20 lines
459 B
JavaScript
let handlers
|
|
const usingElectron = window?.process?.type === 'renderer'
|
|
if (usingElectron) {
|
|
handlers = require('./electron').default
|
|
} else {
|
|
handlers = require('./web').default
|
|
}
|
|
|
|
const DBSettingHandlers = handlers.settings
|
|
const DBHistoryHandlers = handlers.history
|
|
const DBProfileHandlers = handlers.profiles
|
|
const DBPlaylistHandlers = handlers.playlists
|
|
|
|
export {
|
|
DBSettingHandlers,
|
|
DBHistoryHandlers,
|
|
DBProfileHandlers,
|
|
DBPlaylistHandlers
|
|
}
|