Skip to content

Commit

Permalink
New version to remove extensive logging in 0.3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ejci committed Oct 2, 2016
1 parent f6a7eb9 commit adbd303
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion extension/manifest.json
@@ -1,7 +1,7 @@
{
"name": "Audio EQ",
"description": "HTML5 Audio Equalizer for Chrome",
"version": "0.3.3.0",
"version": "0.3.3.1",
"manifest_version": 2,
"permissions": [
"tabs",
Expand Down
18 changes: 9 additions & 9 deletions extension/page/page.js
Expand Up @@ -105,11 +105,11 @@ document.addEventListener("DOMContentLoaded", function onDocLoad() {
var src = (target.src ? target.src : target.currentSrc);

var crossorigin = target.getAttribute('crossorigin');
console.log(target);
//console.log(target);
if (src) {
console.log('src', src);
//console.log('src', src);
//only reload if domains are not the same (so crossorigin attribute can kick in)
console.log(src, getHostName(src), document.location.hostname, (crossorigin ? crossorigin : 'anonymous'));
//console.log(src, getHostName(src), document.location.hostname, (crossorigin ? crossorigin : 'anonymous'));
if (document.location.hostname != getHostName(src) && 'blob:' != src.substring(0, 5) && !crossorigin) {
target.setAttribute('crossorigin', (crossorigin ? crossorigin : 'anonymous'));
//target.setAttribute('preload', 'auto');
Expand All @@ -123,12 +123,12 @@ document.addEventListener("DOMContentLoaded", function onDocLoad() {
}
}
}
setTimeout(function(){
console.dir(target);
},2000)
console.log(target.src)
console.log(target.currentSrc)
console.dir(target);
//setTimeout(function(){
// console.dir(target);
//},2000)
//console.log(target.src)
//console.log(target.currentSrc)
//console.dir(target);

source = audioContext.createMediaElementSource(target);
//read the source channel count
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -29,7 +29,7 @@ It will not work on all pages. It works fine with Google Music, Youtube, Vimeo,.


Author: [Miroslav Magda](http://blog.ejci.net)
Version: 0.3.3.0
Version: 0.3.3.1


####License
Expand Down
Binary file added releases/0.3.3.1.zip
Binary file not shown.

0 comments on commit adbd303

Please sign in to comment.