VulpesOS/gaia/apps/operatorvariant/js/customizers/search_customizer.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

25 lines
496 B
JavaScript
Executable file

/* global Customizer */
'use strict';
var SearchCustomizer = (function() {
Customizer.call(this, 'search', 'json');
this.set = function(aData) {
if (!aData) {
return;
}
var settings = navigator.mozSettings;
if (!settings) {
console.error('SearchCustomizer. Settings is not available');
return;
}
settings.createLock().set({
'search.providers': aData
});
};
});
var searchCustomizer = new SearchCustomizer();
searchCustomizer.init();