mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 02:28:55 +00:00
e064f765cb
* Fix for CSS Injection not working (#703) Issue: When using `onHeadersReceived`, the code was passing `null` for the filters. This appears to trigger behaviour that matches _no_ urls at all. This results in it never being called to inject the CSS. Fix: Pass an empty array instead. Now it's called for all URLs. Tests pass & linting is clean * Fix JavaScript injection (#731) Issue: It appears that on low endd evices (Core m3 MacBook), the attachment to `DOMContentLoaded` happens _after_ the event has been raised, so does not have a chance to inject the script. Fix: Move the attachment to the top of the file -- before the imports. This triggers a bunch of linting erros, so also added disablement inplace. Additional: Clarified when the injected JS gets loaded, and what it can assume about the DOM. |
||
---|---|---|
.. | ||
inject | ||
src | ||
.eslintrc.yml | ||
.npmrc | ||
nativefier.json | ||
package.json |