Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

How to add customization logic around lockPref() when using it in .cfg file

  • 1 svar
  • 1 har detta problem
  • 2 visningar
  • Senaste svar av cor-el

more options

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)

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);

}

Läs svaret i sitt sammanhang 👍 0

Alla svar (1)

more options

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);

}