Skip to content

Commit e37e60a

Browse files
authored
docs: use namespace imports in README examples (#2512)
1 parent c8f5ae4 commit e37e60a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ webExt.cmd.run({
149149
If you would like to run an extension on Firefox for Android:
150150

151151
```js
152-
import adbUtils from "web-ext/util/adb";
152+
import * as adbUtils from "web-ext/util/adb";
153153

154154
// Path to adb binary (optional parameter, auto-detected if missing)
155155
const adbBin = "/path/to/adb";
@@ -173,7 +173,7 @@ webExt.cmd.run({
173173
If you would like to control logging, you can access the logger object. Here is an example of turning on verbose logging:
174174

175175
```js
176-
import webExtLogger from "web-ext/util/logger";
176+
import * as webExtLogger from "web-ext/util/logger";
177177

178178
webExtLogger.consoleStream.makeVerbose();
179179
webExt.cmd.run({sourceDir: './src'}, {shouldExitProgram: false});

0 commit comments

Comments
 (0)