diff --git a/manifest.json b/manifest.json
index 2bc534d..89fe93d 100644
--- a/manifest.json
+++ b/manifest.json
@@ -5,7 +5,7 @@
"content_scripts": [
{
- "js": ["src/content.js"],
+ "js": ["src/content.js", "src/ascii-table.min.js"],
"css": ["src/content.css"],
"matches": [ "*://*/*", "file://*/*"],
"all_frames": false
diff --git a/src/ascii-table.min.js b/src/ascii-table.min.js
new file mode 100644
index 0000000..73eb040
--- /dev/null
+++ b/src/ascii-table.min.js
@@ -0,0 +1 @@
+!function(){"use strict";function t(t,e){this.options=e||{},this.reset(t)}var e=Array.prototype.slice,i=Object.prototype.toString;t.VERSION="0.0.8",t.LEFT=0,t.CENTER=1,t.RIGHT=2,t.factory=function(e,i){return new t(e,i)},t.align=function(e,i,r,n){return e===t.LEFT?t.alignLeft(i,r,n):e===t.RIGHT?t.alignRight(i,r,n):e===t.CENTER?t.alignCenter(i,r,n):t.alignAuto(i,r,n)},t.alignLeft=function(t,e,i){if(!e||0>e)return"";(void 0===t||null===t)&&(t=""),"undefined"==typeof i&&(i=" "),"string"!=typeof t&&(t=t.toString());var r=e+1-t.length;return 0>=r?t:t+Array(e+1-t.length).join(i)},t.alignCenter=function(e,i,r){if(!i||0>i)return"";(void 0===e||null===e)&&(e=""),"undefined"==typeof r&&(r=" "),"string"!=typeof e&&(e=e.toString());var n=e.length,o=Math.floor(i/2-n/2),s=Math.abs(n%2-i%2),i=e.length;return t.alignRight("",o,r)+e+t.alignLeft("",o+s,r)},t.alignRight=function(t,e,i){if(!e||0>e)return"";(void 0===t||null===t)&&(t=""),"undefined"==typeof i&&(i=" "),"string"!=typeof t&&(t=t.toString());var r=e+1-t.length;return 0>=r?t:Array(e+1-t.length).join(i)+t},t.alignAuto=function(e,r,n){(void 0===e||null===e)&&(e="");var o=i.call(e);if(n||(n=" "),r=+r,"[object String]"!==o&&(e=e.toString()),e.length
Find: diff --git a/src/popup.js b/src/popup.js index 05900ca..e9ca90c 100644 --- a/src/popup.js +++ b/src/popup.js @@ -2,7 +2,7 @@ var $ = function(x) { return document.getElementById(x) }; // Send a command to the content. function sendCommand(cmd, broadcast, fn) { - var qry = broadcast ? {} : {active: true, currentWindow: true}; + var qry = broadcast ? {} : {active: true, currentWindow: true}; chrome.tabs.query(qry, function(tabs) { tabs.forEach(function(tab) { chrome.tabs.sendMessage(tab.id, {command: cmd}, fn || function(r) {}); @@ -22,7 +22,7 @@ var updateState = function(state) { var init = function(state) { document.addEventListener("click", function(e) { - + var cmd = e.target.getAttribute("data-command"); if(!cmd) return; @@ -34,7 +34,7 @@ var init = function(state) { if(e.target.getAttribute("data-noclose") !== "1") window.close(); }); - + }); if(navigator.userAgent.indexOf("Macintosh") > 0) {