Skip to content

Commit 72d87e9

Browse files
committed
correct bug with export
1 parent 8e4f33e commit 72d87e9

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

icons/modify-green-300.png

35.8 KB
Loading

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"description": "Simple Modify headers ",
33
"manifest_version": 2,
44
"name": "simple-modify-headers",
5-
"version": "1.8.0",
5+
"version": "1.8.1",
66
"homepage_url": "https://github.com/didierfred/SimpleModifyHeaders",
77
"icons": {
88
"48": "icons/modify-48.png"

popup/config.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
<em style="font-size:10pt"> * Information on URL patterns can be found <a href="https://developer.chrome.com/extensions/match_patterns" target="_blank"> here.</a> <br> An empty string on the field will select all URLs. It's possible to select multiple URL patterns using semicolon (;) separator </em>
8787
</td>
8888
<td style="text-align:right">
89-
<a href="https://github.com/didierfred/SimpleModifyHeaders/tree/v1.8.0" target="_blank"> <span class="glyphicon glyphicon-question-sign"></span> About </a>
89+
<a href="https://github.com/didierfred/SimpleModifyHeaders/tree/v1.8.1" target="_blank"> <span class="glyphicon glyphicon-question-sign"></span> About </a>
9090
</td>
9191
</tr>
9292
</table>

popup/config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ function create_configuration_data(saveOrExport) {
274274
let debug_mode=false;
275275
let show_comments=false;
276276
for (let i=0;i<tr_elements.length;i++) {
277-
if (saveOrExport=="save" || getButtonStatus(tr_elements[i].children[10].children[0])=="on") {
277+
if (saveOrExport=="save" || getButtonStatus(tr_elements[i].children[7].children[0])=="on") {
278278
const url_contains = tr_elements[i].children[0].children[0].value;
279279
const action = tr_elements[i].children[1].children[0].value;
280280
const header_name = tr_elements[i].children[2].children[0].value;
@@ -342,6 +342,8 @@ function exportData() {
342342
// Create file data
343343
let to_export= create_configuration_data("export");
344344

345+
console.log("to_export = ", to_export);
346+
345347
// Create file to save
346348
let a = document.createElement('a');
347349
a.href = 'data:attachment/json,' + encodeURIComponent(to_export);

screenshot1200*800.png

107 KB
Loading

0 commit comments

Comments
 (0)