Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Amplitude.getSongsStatePlaylist #264

Closed
troubleshooter opened this issue May 21, 2018 · 1 comment
Closed

Error in Amplitude.getSongsStatePlaylist #264

troubleshooter opened this issue May 21, 2018 · 1 comment

Comments

@troubleshooter
Copy link

troubleshooter commented May 21, 2018

Environment

  • Browser: Chrome
  • Browser Version:
  • Operating System: Mac OS X
  • Amplitude.js Version: 3.2.3

Issue description

Amplitude.js line 5149 in the function getSongsStatePlaylist is missing an 's'. Similar to issue #230.

	function getSongsStatePlaylist(playlist) {
                        ...
			for (var i = 0; i < _config2.default.playlist[playlist].length; i++) {
                        ... 
	}

I think it should be < _config2.default.playlists[playlist]

Calling Amplitude.getSongsStatePlaylist("playlist_key") results in an error:

Uncaught ReferenceError: getSongsStatePlaylist is not defined

Steps to reproduce the issue

  1. Call function.
  2. See error.

What is expected?

An array of song states

Thanks,
Terry

@danpastori
Copy link
Contributor

This is fixed in the development branch: https://github.com/521dimensions/amplitudejs/tree/dev/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants