Daníel Örn Árnason commited on
Commit
15c608e
·
unverified ·
1 Parent(s): a56688a

Fix CDN usage (#369)

Browse files

Correction on how to use the library with a cdn

docs/src/content/guides/installation.mdx CHANGED
@@ -46,7 +46,7 @@ driverObj.highlight({
46
  If you are using the CDN, you will have to use the package from the `window` object:
47
 
48
  ```js
49
- const driver = window.driver.js.driver;
50
 
51
  const driverObj = driver();
52
  driver.highlight({
@@ -58,4 +58,4 @@ driver.highlight({
58
  });
59
  ```
60
 
61
- Continue reading the [Getting Started](/docs/basic-usage) guide to learn more about the package.
 
46
  If you are using the CDN, you will have to use the package from the `window` object:
47
 
48
  ```js
49
+ const driver = window.driver.js.driver();
50
 
51
  const driverObj = driver();
52
  driver.highlight({
 
58
  });
59
  ```
60
 
61
+ Continue reading the [Getting Started](/docs/basic-usage) guide to learn more about the package.