From 8a6cae6d16075a2198177d1c678de17d7eed6f45 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 30 Mar 2014 12:51:07 -0400 Subject: Add comment: where the file download code came from --- chrome-get-urls-from-tabs-in-windows.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome-get-urls-from-tabs-in-windows.js') diff --git a/chrome-get-urls-from-tabs-in-windows.js b/chrome-get-urls-from-tabs-in-windows.js index 6f957cd..a689b0c 100644 --- a/chrome-get-urls-from-tabs-in-windows.js +++ b/chrome-get-urls-from-tabs-in-windows.js @@ -25,6 +25,8 @@ chrome.windows.getAll({populate:true},function(windows){ }); +// Adapted from: +// http://stackoverflow.com/a/18197511 create_download_link = function(text) { var download_link = document.createElement('a'); download_link.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)); -- cgit v1.2.3