font-face-extract
Advanced tools
Comparing version 0.5.6 to 0.5.7
@@ -53,7 +53,12 @@ class GetPageFontFaceText { | ||
let selectors = cssSelect[i], | ||
oe, | ||
oe = [], | ||
string = ''; | ||
//遍历选择器,获取其文本 | ||
selectors.forEach(item => { | ||
oe = config.dom.window.document.querySelectorAll(item); | ||
let list = config.dom.window.document.querySelectorAll(item); | ||
//将获取的元素添加到一个列表 | ||
list.forEach(_item => { | ||
oe.push(_item); | ||
}); | ||
}); | ||
@@ -60,0 +65,0 @@ oe.forEach(item => { |
@@ -0,0 +0,0 @@ class getPagesFontFaceText{ |
{ | ||
"name": "font-face-extract", | ||
"version": "0.5.6", | ||
"version": "0.5.7", | ||
"description": "html font-face text extraction", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -0,0 +0,0 @@ # font-face-extract |
@@ -5,3 +5,3 @@ const path = require('path'), | ||
let fontCatch = new FontCatch({ | ||
src:[path.join(__dirname,'demo.html'),path.join(__dirname,'demo1.html')] | ||
src:[path.join(__dirname,'../../index.html')] | ||
}); | ||
@@ -8,0 +8,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
384
19555