File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,9 @@ function onInvoiceMessage(message) {
113113 } else if ( tabs [ i ] . url . indexOf ( "seb.se" ) != - 1 ) {
114114 found ++ ;
115115 handleSeb ( message , tabs [ i ] ) ;
116+ } else if ( tabs [ i ] . url . indexOf ( "nordnet.se" ) != - 1 ) {
117+ found ++ ;
118+ handleNordnet ( message , tabs [ i ] ) ;
116119 }
117120 }
118121
@@ -178,3 +181,12 @@ function handleSeb(invoice, tab) {
178181 } ) ;
179182}
180183
184+ function handleNordnet ( invoice , tab ) {
185+ chrome . tabs . executeScript ( tab . id , {
186+ code : "" +
187+ "if ('" + invoice . account + "' != '') document.getElementById('kontonummer').value='" + invoice . account + "';" +
188+ "if ('" + invoice . reference + "' != '') document.getElementById('ocr').value='" + invoice . reference + "';" +
189+ "if ('" + invoice . amount + "' != '') document.getElementById('belopp').value='" + invoice . amount + "';"
190+ } ) ;
191+ }
192+
You can’t perform that action at this time.
0 commit comments