From 660bb23c315c6d5bfceded51f5dc2de695b5714f Mon Sep 17 00:00:00 2001 From: Tamal Chowdhury Date: Thu, 16 Mar 2023 23:00:32 +0600 Subject: [PATCH] Updates the readme to include browser option Adds a code snippet to show how to use this package with vanilla JS in the browser. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 5fc84efb..83d95be7 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,18 @@ and it will make the `domtoimage` variable available in the global scope. ``` +### Browser + +Include the JavaScript bundle from an online CDN store such as [CDNjs](https://cdnjs.com/libraries/dom-to-image): + +```html + + +``` + ## Usage All the top level functions accept DOM node and rendering options,