2017-08-28 19:00:46 +02:00
|
|
|
|
document.addEventListener('DOMContentLoaded', function (event) {
|
|
|
|
|
chrome.storage.local.get('enableAutoFillOnPageLoad', function (obj) {
|
|
|
|
|
if (obj && obj.enableAutoFillOnPageLoad === true) {
|
|
|
|
|
setTimeout(fill, 500);
|
|
|
|
|
window.addEventListener('popstate', fill);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function fill() {
|
|
|
|
|
chrome.runtime.sendMessage({
|
|
|
|
|
command: 'bgCollectPageDetails',
|
2017-10-02 16:29:46 +02:00
|
|
|
|
sender: 'autofiller'
|
2017-08-28 19:00:46 +02:00
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|