smartphoto
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -79,5 +79,7 @@ 'use strict'; | ||
module.exports.append = function (element, string) { | ||
var parser = new DOMParser(); | ||
var doc = parser.parseFromString(string, 'text/html'); | ||
element.appendChild(doc.querySelector('body').childNodes[0]); | ||
var div = document.createElement('div'); | ||
div.innerHTML = string; | ||
while (div.children.length > 0) { | ||
element.appendChild(div.children[0]); | ||
} | ||
}; | ||
@@ -84,0 +86,0 @@ |
{ | ||
"name": "smartphoto", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "smartphoto", | ||
@@ -24,3 +24,2 @@ "homepage": "http://developer.a-blogcms.jp", | ||
"start": "npm-run-all -p watch:js watch:sass sync", | ||
"prepublish": "npm run build:js && git add -A && git commit -m \"bumping version\"", | ||
"deploy": "np --no-cleanup" | ||
@@ -27,0 +26,0 @@ }, |
@@ -76,6 +76,8 @@ module.exports.isSmartPhone = () => { | ||
module.exports.append = (element,string) => { | ||
const parser = new DOMParser(); | ||
const doc = parser.parseFromString(string, 'text/html'); | ||
element.appendChild(doc.querySelector('body').childNodes[0]); | ||
module.exports.append = (element, string) => { | ||
const div = document.createElement('div'); | ||
div.innerHTML = string; | ||
while (div.children.length > 0) { | ||
element.appendChild(div.children[0]); | ||
} | ||
} | ||
@@ -82,0 +84,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
12506
7502980