{"action":"created","issue":{"url":"https://api.github.com/repos/Valve/fingerprintjs2/issues/92","labels_url":"https://api.github.com/repos/Valve/fingerprintjs2/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/Valve/fingerprintjs2/issues/92/comments","events_url":"https://api.github.com/repos/Valve/fingerprintjs2/issues/92/events","html_url":"https://github.com/Valve/fingerprintjs2/issues/92","id":119134267,"number":92,"title":"CDN distribution does an anonymous define in AMD environments, causing errors","user":{"login":"nicolasv","id":50625,"avatar_url":"https://avatars.githubusercontent.com/u/50625?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasv","html_url":"https://github.com/nicolasv","followers_url":"https://api.github.com/users/nicolasv/followers","following_url":"https://api.github.com/users/nicolasv/following{/other_user}","gists_url":"https://api.github.com/users/nicolasv/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasv/subscriptions","organizations_url":"https://api.github.com/users/nicolasv/orgs","repos_url":"https://api.github.com/users/nicolasv/repos","events_url":"https://api.github.com/users/nicolasv/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-27T05:34:19Z","updated_at":"2015-11-27T06:01:25Z","closed_at":null,"body":"Hi\r\n\r\nIt appears that the CDN distribution of Fingerprintjs2 does an anonymous `define()` in AMD environments, e.g., from https://cdn.jsdelivr.net/fingerprintjs2/1.0.0-rc3/fingerprint2.min.js:\r\n\r\n```js\r\n\"function\"==typeof define&&define.amd?define(i):t[e]=i()\r\n```\r\n\r\nThis causes the following JavaScript error\r\n```text\r\nUncaught Error: Mismatched anonymous define()\r\n```\r\nwhich links to http://requirejs.org/docs/errors.html#mismatch for more details, which seems to indicate that there should not be anonymous defines for a distribution like the CDN where it will be included by a `<script>` tag.\r\n\r\nCheers\r\nNic"},"comment":{"url":"https://api.github.com/repos/Valve/fingerprintjs2/issues/comments/160049661","html_url":"https://github.com/Valve/fingerprintjs2/issues/92#issuecomment-160049661","issue_url":"https://api.github.com/repos/Valve/fingerprintjs2/issues/92","id":160049661,"user":{"login":"Valve","id":27387,"avatar_url":"https://avatars.githubusercontent.com/u/27387?v=3","gravatar_id":"","url":"https://api.github.com/users/Valve","html_url":"https://github.com/Valve","followers_url":"https://api.github.com/users/Valve/followers","following_url":"https://api.github.com/users/Valve/following{/other_user}","gists_url":"https://api.github.com/users/Valve/gists{/gist_id}","starred_url":"https://api.github.com/users/Valve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Valve/subscriptions","organizations_url":"https://api.github.com/users/Valve/orgs","repos_url":"https://api.github.com/users/Valve/repos","events_url":"https://api.github.com/users/Valve/events{/privacy}","received_events_url":"https://api.github.com/users/Valve/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T06:01:25Z","updated_at":"2015-11-27T06:01:25Z","body":"Hi @nicolasv. I've never used AMD, so marking this one as 'help wanted'. Originally @andreypopp added this feature to FP1 which I then just copied. I should be able to fix it myself, but a bit later, I need to read about AMD first."}}