From a3d3f72729edf1ff829150bf7ddccfbc0a70497d Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 27 Jul 2021 02:54:07 -0400 Subject: remove link 'title' attributes that's just the 'href' (ru) (#1715) --- files/ru/tools/browser_console/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files/ru/tools/browser_console') diff --git a/files/ru/tools/browser_console/index.html b/files/ru/tools/browser_console/index.html index 00d49816ff..53e6c8b9ca 100644 --- a/files/ru/tools/browser_console/index.html +++ b/files/ru/tools/browser_console/index.html @@ -114,7 +114,7 @@ clearBtn.addEventListener('mouseover', function() {

Bonus Features Available

-

For Add-on SDK add-ons, the console API is available automatically. Here's an example add-on that just logs an error when the user clicks a widget:

+

For Add-on SDK add-ons, the console API is available automatically. Here's an example add-on that just logs an error when the user clicks a widget:

widget = require("sdk/widget").Widget({
   id: "an-error-happened",
@@ -128,13 +128,13 @@ function logError() {
   console.error("something went wrong!");
 }
-

If you build this as an XPI file, then open the Browser Console, then open the XPI file in Firefox and install it, you'll see a widget labeled "Error!" in the Add-on bar:

+

If you build this as an XPI file, then open the Browser Console, then open the XPI file in Firefox and install it, you'll see a widget labeled "Error!" in the Add-on bar:

Click the icon. You'll see output like this in the Browser Console:

-

For Add-on SDK-based add-ons only, the message is prefixed with the name of the add-on ("log-error"), making it easy to find all messages from this add-on using the "Filter output" search box. By default, only error messages are logged to the console, although you can change this in the browser's preferences.

+

For Add-on SDK-based add-ons only, the message is prefixed with the name of the add-on ("log-error"), making it easy to find all messages from this add-on using the "Filter output" search box. By default, only error messages are logged to the console, although you can change this in the browser's preferences.

Browser Console command line

-- cgit v1.2.3-54-g00ecf