(url, params)
| 683 | |
| 684 | |
| 685 | function _getUrl(url, params){ |
| 686 | if( !_rhttp.test(url) ){ |
| 687 | if( /^\.\//.test(url) || '/' != url.charAt(0) ){ |
| 688 | var path = location.pathname; |
| 689 | path = path.substr(0, path.lastIndexOf('/')); |
| 690 | url = (path +'/'+ url).replace('/./', '/'); |
| 691 | } |
| 692 | |
| 693 | if( '//' != url.substr(0, 2) ){ |
| 694 | url = '//' + location.host + url; |
| 695 | } |
| 696 | |
| 697 | if( !_rhttp.test(url) ){ |
| 698 | url = location.protocol + url; |
| 699 | } |
| 700 | } |
| 701 | |
| 702 | if( params ){ |
| 703 | url += (/\?/.test(url) ? '&' : '?') + params; |
| 704 | } |
| 705 | |
| 706 | return url; |
| 707 | } |
| 708 | |
| 709 | |
| 710 | function _makeFlashImage(opts, base64, fn){ |
no outgoing calls
no test coverage detected