diff --git a/src/index.test.ts b/src/index.test.ts
index 097b1e7a..f2881228 100644
--- a/src/index.test.ts
+++ b/src/index.test.ts
@@ -28,7 +28,8 @@ const html = `
`
-const metaTags = htmlToMetaTags(html)
+const selector = 'meta[property^="fc:"], meta[property^="og:"]'
+const metaTags = htmlToMetaTags(html, selector)
test('htmlToMetaTags', () => {
const html = `
@@ -37,7 +38,7 @@ test('htmlToMetaTags', () => {
bar
`
- expect(htmlToMetaTags(html).length).toEqual(2)
+ expect(htmlToMetaTags(html, selector).length).toEqual(2)
})
test('parseFrameProperties', () => {
@@ -99,7 +100,7 @@ describe('validateFrameButtons', () => {
`
- const metaTags = htmlToMetaTags(html)
+ const metaTags = htmlToMetaTags(html, selector)
const buttons = parseFrameButtons(metaTags)
const result = validateFrameButtons(buttons)
expect(result).toEqual({
@@ -113,7 +114,7 @@ describe('validateFrameButtons', () => {
`
- const metaTags = htmlToMetaTags(html)
+ const metaTags = htmlToMetaTags(html, selector)
const buttons = parseFrameButtons(metaTags)
const result = validateFrameButtons(buttons)
expect(result).toEqual({
diff --git a/src/index.tsx b/src/index.tsx
index 3f8d1c71..80109284 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -601,7 +601,6 @@ function htmlToState(html: string) {
properties[property] = content
}
- console.log(properties)
return {
context: deserializeJson(properties['farc:context']),
previousContext: deserializeJson(