Browse Source

update content script

pull/342/head
Guillaume Vincent 8 years ago
parent
commit
85f003f7a9
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      extension/content.js

+ 7
- 0
extension/content.js View File

@@ -1 +1,8 @@
console.log('content script');
import {getLoginForm} from './form-parser';

chrome.runtime.onMessage.addListener(message => {
const loginForm = getLoginForm();
loginForm.passwordField.value = message.password;
});


Loading…
Cancel
Save