aboutsummaryrefslogtreecommitdiffstats
path: root/chrome-get-urls-from-tabs-in-windows.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome-get-urls-from-tabs-in-windows.js')
-rw-r--r--chrome-get-urls-from-tabs-in-windows.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome-get-urls-from-tabs-in-windows.js b/chrome-get-urls-from-tabs-in-windows.js
index e38c6ce..b2c3554 100644
--- a/chrome-get-urls-from-tabs-in-windows.js
+++ b/chrome-get-urls-from-tabs-in-windows.js
@@ -110,7 +110,7 @@ create_download_link = function(text, callback) {
};
-generate_file_string = function() {
+generate_file_string = function(filename_prefix) {
var d = new Date();
var date_string =
d.getFullYear()
@@ -123,7 +123,7 @@ generate_file_string = function() {
+ 'h'
+ ('0' + d.getMinutes()).slice(-2);
- return 'chrome-tabs-' + date_string;
+ return (filename_prefix ? filename_prefix : 'chrome-tabs-') + date_string;
};
@@ -142,6 +142,6 @@ generate_filename = function(callback) {
file_extension = 'txt';
}
- callback(generate_file_string() + '.' + file_extension);
+ callback(generate_file_string(items.filename_prefix) + '.' + file_extension);
});
}; \ No newline at end of file