Skip to content

Commit

Permalink
Merge pull request #16 from VirusTotal/feature/get-rid-of-srcdoc
Browse files Browse the repository at this point in the history
Remove the ability to inject prechached html into the iframe
  • Loading branch information
danipv authored Jun 2, 2021
2 parents 158dd83 + a5a78cf commit 04cf7cf
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 209 deletions.
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ Creates a new object with a html element and a set of options. An iframe is dyna

*Methods can be chained and can be called in whatever order.*

| [load](#loadurl-string) | [preload](#preloadurl-string) | [openDrawer](#opendrawer) | [closeDrawer](#closedrawer) | [loading](#loading(active-boolean))
|-----|-----|-----|-----|-----|
| [load](#loadurl-string) | [openDrawer](#opendrawer) | [closeDrawer](#closedrawer) | [loading](#loading(active-boolean))
|-----|-----|-----|-----|

#### load(url: string)

Expand All @@ -77,15 +77,6 @@ vtaugment.load("...").openDrawer()

```

#### preload(url: string)

Load the html and cache it ready to show the content as soon as you call the `load` method. Typically this method is used linked to a `mouseover` event in the link or the surrounded area of the link.

```js
vtaugment.preload("...")

```

#### openDrawer()

Open a drawer panel from the right side. (Only works in [drawer](#drawer) mode)
Expand Down
Loading

0 comments on commit 04cf7cf

Please sign in to comment.