browserSettings.ftpProtocolEnabled

Un objet BrowserSetting qui détermine si le protocole FTP est activé dans le navigateur.

La valeur sous-jaccente est un booléen.

Compatibilité des navigateurs

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
ftpProtocolEnabled

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.

Exemples

Changer le réglage:

js
function toggleAllowFtp() {
  function toggle(current) {
    console.log(`Valeur actuelle: ${current.value}`);
    browser.browserSettings.ftpProtocolEnabled.set({ value: !current.value });
  }

  browser.browserSettings.ftpProtocolEnabled.get({}).then(toggle);
}

browser.browserAction.onClicked.addListener(() => {
  toggleAllowFtp();
});