electron-posthtml
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -30,3 +30,3 @@ // ------------------------------------ | ||
protocol.interceptBufferProtocol('file', function (request, callback) { | ||
protocol.interceptBufferProtocol('html', function (request, callback) { | ||
var file = getPath(request.url) | ||
@@ -40,2 +40,3 @@ var content = null | ||
var ext = path.extname(file) | ||
if (ext === '.html') { | ||
@@ -62,3 +63,3 @@ var compiled = posthtml(plugins).process(file).then(result => result.html) | ||
if (!error) { | ||
console.log('PostHTML interceptor registered successfully') | ||
console.log('PostHTML interceptor success') | ||
} else { | ||
@@ -65,0 +66,0 @@ console.error('PostHTML interceptor error:', error) |
{ | ||
"name": "electron-posthtml", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "PostHTML file interceptor for Electron", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
4537