mirror of
https://github.com/remy/inliner.git
synced 2024-09-11 17:25:30 +03:00
Change for null cases
In the case that this.src is null, need to go ahead and handle it gracefully. Rather let url.js handle the null case than try to anticipate all the ways it could go wrong.
This commit is contained in:
parent
574f2c3ed0
commit
e3cb626ce9
@ -268,7 +268,7 @@ function Inliner(url, options, callback) {
|
||||
// but we're just being extra sure before we do zap it out
|
||||
todo.scripts && assets.scripts.each(function () {
|
||||
var $script = window.$(this),
|
||||
scriptURL = URL.resolve(url, this.src);
|
||||
scriptURL = URL.resolve(url, (this.src||"").toString());
|
||||
|
||||
if (!this.src || scriptURL.indexOf('google-analytics.com') !== -1) { // ignore google
|
||||
breakdown.scripts--;
|
||||
|
Loading…
Reference in New Issue
Block a user