soundcloud-audio
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "soundcloud-audio", | ||
"main": "dist/soundcloud-audio.js", | ||
"version": "0.1.5", | ||
"version": "0.1.7", | ||
"homepage": "https://github.com/voronianski/soundcloud-audio.js", | ||
@@ -6,0 +6,0 @@ "description": "Play SoundCloud tracks and playslists in modern browsers with HTML5 Audio API", |
@@ -23,2 +23,9 @@ 'use strict'; | ||
SoundCloud.prototype.appendQueryParam = function(url, param, value) { | ||
var regex = /\?(?:.*)$/; | ||
var chr = regex.test(url) ? '&' : '?'; | ||
return url + chr + param + '=' + value; | ||
}; | ||
SoundCloud.prototype.resolve = function (url, callback) { | ||
@@ -117,3 +124,3 @@ if (!url) { | ||
src += '?client_id=' + this._clientId; | ||
src = this.appendQueryParam(src, 'client_id', this._clientId); | ||
@@ -120,0 +127,0 @@ if (src !== this.audio.src) { |
{ | ||
"name": "soundcloud-audio", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Play SoundCloud tracks and playslists in modern browsers with HTML5 Audio API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15329
166