Ticket #9173: codepress-js-mods.diff
File codepress-js-mods.diff, 477 bytes (added by , 15 years ago) |
---|
Line | |
---|---|
1 | 120,124c120,125 |
2 | < // Modified for WordPress compat to prevent loading on webkit and to |
3 | < // reference a codepress_path which is specified externally. |
4 | < if (navigator.userAgent.toLowerCase().indexOf('webkit') != -1) |
5 | < return; |
6 | < CodePress.path = codepress_path; |
7 | --- |
8 | > s = document.getElementsByTagName('script'); |
9 | > for(var i=0,n=s.length;i<n;i++) { |
10 | > if(s[i].src.match('codepress.js')) { |
11 | > CodePress.path = s[i].src.replace('codepress.js',''); |
12 | > } |
13 | > } |