/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict";
const prefs = {
PREFS: { // Filter preferences only have the suffix since they can be used either for the // webconsole or the browser console.
FILTER: {
ERROR: "filter.error",
WARN: "filter.warn",
INFO: "filter.info",
LOG: "filter.log",
DEBUG: "filter.debug",
CSS: "filter.css",
NET: "filter.net",
NETXHR: "filter.netxhr",
},
UI: { // Persist is only used by the webconsole.
PERSIST: "devtools.webconsole.persistlog", // Max number of entries in history list.
INPUT_HISTORY_COUNT: "devtools.webconsole.inputHistoryCount", // Is editor mode enabled.
EDITOR: "input.editor", // Display timestamp in messages.
MESSAGE_TIMESTAMP: "devtools.webconsole.timestampMessages", // Store the editor width.
EDITOR_WIDTH: "input.editorWidth", // Show the Editor onboarding UI
EDITOR_ONBOARDING: "devtools.webconsole.input.editorOnboarding", // Show the Input Context the selector
CONTEXT_SELECTOR: "devtools.webconsole.input.context", // Persist the "enable network monitoring" option
ENABLE_NETWORK_MONITORING: "devtools.browserconsole.enableNetworkMonitoring",
},
FEATURES: { // We use the same pref to enable the sidebar on webconsole and browser console.
SIDEBAR_TOGGLE: "devtools.webconsole.sidebarToggle",
AUTOCOMPLETE: "devtools.webconsole.input.autocomplete",
EAGER_EVALUATION: "devtools.webconsole.input.eagerEvaluation",
GROUP_WARNINGS: "devtools.webconsole.groupWarningMessages",
},
},
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.