get-notion-contents
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -40,3 +40,3 @@ "use strict"; | ||
const src = item.getAttribute('src'); | ||
let newSrc; | ||
let newSrc = src; | ||
if (src.startsWith('https://s3.us-west')) { | ||
@@ -47,4 +47,3 @@ const [parsedOriginUrl] = src.split('?'); | ||
else if (src.startsWith('/')) { | ||
const notionImage = src.replace(/^\/image\//, ''); | ||
newSrc = decodeURIComponent(notionImage); | ||
newSrc = 'https://notion.so' + src; | ||
} | ||
@@ -51,0 +50,0 @@ item.setAttribute('src', newSrc); |
{ | ||
"name": "get-notion-contents", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Get contents from notion", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18420
354