Skip to content

Commit d794dfc

Browse files
author
Yaison
committed
WS-2589: adding a warning if genre is present
1 parent 50dc159 commit d794dfc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ function Api(userKey, serviceURL) {
102102
Api.prototype.rosette = function(endpoint, callback) {
103103

104104
var api = this;
105+
if (typeof(api.parameters.genre) !== 'undefined' && api.parameters.genre != null) {
106+
console.warn("The genre parameter is deprecated and will be removed in a future release.");
107+
}
105108
endpoint = require("./" + endpoint);
106109
var e = new endpoint();
107110

0 commit comments

Comments
 (0)