Skip to content

Commit

Permalink
Ain't noone need custom themes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkuker committed Jun 10, 2015
1 parent 022462b commit 8274ca2
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 4,118 deletions.
22 changes: 3 additions & 19 deletions WebContent/background.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
var path, value, copyPathMenuEntryId, copyValueMenuEntryId;

function getDefaultTheme(callback) {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState == 4)
callback(xhr.responseText);
};
xhr.open("GET", "jsonview.css", true);
xhr.send(null);
}

function copy(value) {
var selElement, selRange, selection;
selElement = document.createElement("span");
Expand Down Expand Up @@ -73,8 +63,7 @@ function init() {
if (message.html)
port.postMessage({
onjsonToHTML : true,
html : message.html,
theme : localStorage.theme
html : message.html
});
if (message.error) {
workerJSONLint = new Worker("workerJSONLint.js");
Expand Down Expand Up @@ -113,10 +102,5 @@ if (typeof options.addContextMenu == "undefined") {
localStorage.options = JSON.stringify(options);
}

if (!localStorage.theme)
getDefaultTheme(function(theme) {
localStorage.theme = theme;
init();
});
else
init();

init();
19 changes: 0 additions & 19 deletions WebContent/codemirror/LICENSE

This file was deleted.

174 changes: 0 additions & 174 deletions WebContent/codemirror/codemirror.css

This file was deleted.

Loading

0 comments on commit 8274ca2

Please sign in to comment.