propublica / facebook-political-ads

Monitoring Facebook Political Ads
MIT License
237 stars 50 forks source link

Gross fix for #59

Closed jeremybmerrill closed 6 years ago

jeremybmerrill commented 6 years ago

adds an ugly ugly setTimeout as a workaround for https://bugs.chromium.org/p/chromium/issues/detail?id=649942

we're trying to outsmart Chrome into thinking that our popup is "loaded" and ready to go. (otherwise it waits for all external assets to load before popping-up the popup.) With this change, the popup appears immediately, but as a correctly-sized empty gray box.

Will fix #42.

thejefflarson commented 6 years ago

Oh I so hate this, but what're you gunna do? Good sleuthing.