projects
/
Biblio-RFID.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb861cf
)
mock console.debug and console.info
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 28 Jul 2010 13:28:17 +0000
(15:28 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 28 Jul 2010 13:28:17 +0000
(15:28 +0200)
This allows us to work in Firefox without Firebug installed
scripts/RFID-JSONP-server.pl
patch
|
blob
|
history
diff --git
a/scripts/RFID-JSONP-server.pl
b/scripts/RFID-JSONP-server.pl
index
a904515
..
5c47daf
100755
(executable)
--- a/
scripts/RFID-JSONP-server.pl
+++ b/
scripts/RFID-JSONP-server.pl
@@
-164,6
+164,15
@@
label[for=pull-reader] {
</style>
<script type="text/javascript">
+// mock console
+if(!window.console) {
+ window.console = new function() {
+ this.info = function(str) {};
+ this.debug = function(str) {};
+ };
+}
+
+
function got_visible_tags(data,textStatus) {
var html = 'No tags in range';
if ( data.tags ) {