Skip to content

Commit

Permalink
Merge pull request #2449 from mneunomne/#2437
Browse files Browse the repository at this point in the history
fix exception
  • Loading branch information
mneunomne authored Nov 3, 2023
2 parents f1e61f1 + 4aa305b commit 98dbc94
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/js/adn/textads.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,12 @@
banner = $find(div, '#banner'),
title = $find(div,'#title');

src = div.style.cssText.match(/url\((.*?)\)/)[1];
src = div.style.cssText.match(/url\((.*?)\)/)
if (src && src.length > 1) {
src = src[1]
} else {
return
}
var parsed = src.replace(/\\/g,"");

if (banner.length) {
Expand Down

0 comments on commit 98dbc94

Please sign in to comment.