mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +00:00
16 lines
470 B
JavaScript
16 lines
470 B
JavaScript
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',
|
|
sender: 'autofiller'
|
|
});
|
|
}
|
|
});
|