mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
add runtime check for search engine options
This commit is contained in:
parent
22587ee6b5
commit
8ce499e958
@ -1,4 +1,5 @@
|
||||
import OptionsWidget from "../options_widget.js";
|
||||
import utils from "../../../../services/utils.js";
|
||||
|
||||
const TPL = `
|
||||
<div class="options-section">
|
||||
@ -43,6 +44,10 @@ const SEARCH_ENGINES = {
|
||||
}
|
||||
|
||||
export default class SearchEngineOptions extends OptionsWidget {
|
||||
isEnabled() {
|
||||
return super.isEnabled() && utils.isElectron();
|
||||
}
|
||||
|
||||
doRender() {
|
||||
this.$widget = $(TPL);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user