15 Commits

Author SHA1 Message Date
Qix
71d2aa77ff
Merge pull request #476 from EirikBirkeland/patch-1
Drop usage of `chrome.storage` (or make the storage backend pluggable)
2018-06-20 13:03:33 -06:00
Nathan Rajlich
71169065b5 refactor to make the common code be a setup function (#507)
This is so that we can make both a Node.js instance and
web browser instance for when `--inspect` is used in Node.js.
2017-10-11 08:31:18 -07:00
Iñaki Baz Castillo
b3ea123cc4 Disable colors in Edge and Internet Explorer (#489)
Fixes #417.
2017-08-24 12:40:18 -07:00
Nathan Rajlich
5ed41f6d92 add Web Browser 256 colors
Like #481, but for the web browser.
2017-08-08 14:42:25 -07:00
Eirik Birkeland
da51af8314 Simplify and improve
The browser version assumes that chrome.storage.local uses an API which is compatible with localStorage; which is not the case. Even though I am using chrome.storage.local for my Chrome extension, I would much prefer to keep debug's variable in localStorage, as I consider chrome.storage.local the 'private space' of my extension.

This change obviates the need to support multiple storage types. But if storage type is important, how about supporting a custom storage facility, including chrome.storage.sync? I.e. the user would provide an object that follows the conventions. Just a thought - I certainly don't see the need at this point though.
2017-07-17 18:45:45 +02:00
Marc MacLeod
2482e08e4e Check for undefined on browser globals (#462)
* Check for undefined on browser globals.

Not all environments include these globals. For example, web workers do not have global window objects.

* remove redundant global checks
2017-05-18 09:38:54 -07:00
Andrew E. Rhyne
cae07b70c9 cleanup browser tests and fix null reference check on window.documentElement.style.WebkitAppearance (#447) 2017-04-27 08:59:02 -07:00
Paul Betts
0fb8ea4730 LocalStorage returns undefined for any key not present (#431) 2017-03-13 20:43:57 -07:00
Andrew E. Rhyne
589559502a better null pointer checks for browser useColors 2016-12-28 23:46:46 -06:00
Nathan Rajlich
664613047c remove explicit window.debug export (#404)
Exporting to the "outer" scope of the module is more the responsibility
of the module loader (i.e. browserify, webpack, etc.) and thus this
is not necessary. `make test-browser` still passes after this patch.
2016-12-28 23:27:52 -06:00
Klaus Trainer
eba68cec1a fix(browser): prevent ReferenceError in workers (#393)
fixes #382
2016-12-25 18:34:37 -08:00
Andrew E. Rhyne
d85c0c613d build perf, fix for bowerfile, fix for webworker 2016-12-20 20:44:57 -08:00
Accalia de Elementia
f512cf2367 Merge remote-tracking branch 'upstream/master' into replace-babel-with-browserify 2016-12-21 01:42:09 +00:00
Yami
2a01c6c775 Merged from upstream/master. I left the dist/debug in place because my hook now updates it automatically, but I removed the babelrc file since we don't need it anymore. 2016-12-20 12:27:29 +00:00
Yami
f42b962792 refactor: Moved source files to /src. Moved test files to client and server side tests. Added karma for front-end testing. 2016-12-16 15:19:40 +00:00