UNPKG

ace-diff

Version:

A diff/merging wrapper for Ace Editor built on google-diff-match-patch

13 lines (11 loc) 381 B
const C = require('../constants'); module.exports = function getTheme(acediff, editor) { let { theme } = acediff.options; if (editor === C.EDITOR_LEFT && acediff.options.left.theme !== null) { theme = acediff.options.left.theme; } if (editor === C.EDITOR_RIGHT && acediff.options.right.theme !== null) { theme = acediff.options.right.theme; } return theme; };