mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
add runtime check for search engine options
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user