@azuro-org/images-generator 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +2 -2
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -167,8 +167,8 @@ function __generator(thisArg, body) {
|
|
|
167
167
|
page.on('request', function (req) {
|
|
168
168
|
var resourceType = req.resourceType();
|
|
169
169
|
// Block only truly unnecessary resources that don't affect rendering
|
|
170
|
-
// Allow images, stylesheets, scripts, and data URLs
|
|
171
|
-
if (['
|
|
170
|
+
// Allow images, stylesheets, scripts, fonts, and data URLs
|
|
171
|
+
if (['media', 'websocket', 'manifest', 'texttrack'].includes(resourceType)) {
|
|
172
172
|
req.abort();
|
|
173
173
|
}
|
|
174
174
|
else {
|
package/lib/index.js
CHANGED
|
@@ -167,8 +167,8 @@ function __generator(thisArg, body) {
|
|
|
167
167
|
page.on('request', function (req) {
|
|
168
168
|
var resourceType = req.resourceType();
|
|
169
169
|
// Block only truly unnecessary resources that don't affect rendering
|
|
170
|
-
// Allow images, stylesheets, scripts, and data URLs
|
|
171
|
-
if (['
|
|
170
|
+
// Allow images, stylesheets, scripts, fonts, and data URLs
|
|
171
|
+
if (['media', 'websocket', 'manifest', 'texttrack'].includes(resourceType)) {
|
|
172
172
|
req.abort();
|
|
173
173
|
}
|
|
174
174
|
else {
|