How to add customization logic around lockPref() when using it in .cfg file
I wanted a way to apply the lockPref only when certain conditions are met and also add some customization logic around the lockPref functionality. How can I acheive this?. Any sample script to acheive this is greatly appreciated.
User Agent
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Vald lösning
mozilla.cfg is a JavaScript file, so you can try to add the instruction to that file to see if that works. What kind of customizationlogic do you have in mind?
if (condition) {
lockPref(prefName, prefValue);
}
Alla svar (1)
Vald lösning
mozilla.cfg is a JavaScript file, so you can try to add the instruction to that file to see if that works. What kind of customizationlogic do you have in mind?
if (condition) {
lockPref(prefName, prefValue);
}