create-miro-app
Advanced tools
Comparing version 0.1.6 to 0.1.7
function init() { | ||
const root = document.querySelector('#app'); | ||
const root = document.querySelector('#root'); | ||
@@ -4,0 +4,0 @@ if (root) { |
function init() { | ||
document.querySelector( | ||
'#app', | ||
).innerHtml = `<button>Create your first widget</button>`; | ||
const root = document.querySelector('#root'); | ||
const button = document.querySelector('button'); | ||
if (root) { | ||
root.innerHTML = `<button>Create your first widget</button>`; | ||
button.addEventListener('click', async () => { | ||
await miro.board.widgets.create({type: 'sticker', text: 'Hello, World!'}); | ||
}); | ||
const button = document.querySelector('button'); | ||
if (button) { | ||
button.addEventListener('click', async () => { | ||
await miro.board.widgets.create({ | ||
type: 'sticker', | ||
text: 'Hello, World!', | ||
}); | ||
}); | ||
} | ||
} | ||
} | ||
init(); |
{ | ||
"name": "create-miro-app", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "miro", |
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
559397
2222