{"action":"created","comment":{"url":"https://api.github.com/repos/sezzle/sezzle-js/pulls/comments/243545227","pull_request_review_id":187344276,"id":243545227,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzU0NTIyNw==","diff_hunk":"@@ -1,72 +1,26 @@\n-if (this.requirejs !== undefined) {\n-    this.requirejs.config({\n-        appDir: \".\",\n-        baseUrl: \"js\",\n-        paths: {\n-            'fingerprint2': ['//cdn.jsdelivr.net/fingerprintjs2/1.4.1/fingerprint2.min'],\n-        }\n+(function(callback) {\n+  let track_id = null;\n+  function generateUUID() {\n+    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\n+      var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);\n+      return v.toString(16);\n     });\n+  }\n+  function getCookie(name) {\n+    var value = \"; \" + document.cookie;\n+    var parts = value.split(\"; \" + name + \"=\");\n+    if (parts.length === 2) {\n+      return parts.pop().split(\";\").shift();\n+    }\n+  }\n \n-    require(['fingerprint2'], function(Fingerprint2) {\n-        (function(callback) {\n-            var fingerprintOptions = {\n-                excludeScreenResolution: true,\n-                excludeColorDepth: false,\n-                excludeAvailableScreenResolution: true,\n-                excludePixelRatio: true,\n-                excludeWebGL: false,\n-                excludeCanvas: false,\n-            };\n-            new Fingerprint2(fingerprintOptions).get(function(result, components) {\n-                callback(result);\n-            });\n-        })(function(fingerprint) {\n-            var el = document.createElement('script');\n-            el.src = 'https://widget.sezzle.com/v1/javascript/price-widget?uuid=' + document.sezzleConfig[\"merchantID\"] + '&fingerprint=' + fingerprint\n-            document.getElementsByTagName('head')[0].appendChild(el);\n-        });\n-    }, function(error) {\n-        (function(callback) {\n-            callback('');\n-        })(function(fingerprint) {\n-            var el = document.createElement('script');\n-            el.src = 'https://widget.sezzle.com/v1/javascript/price-widget?uuid=' + document.sezzleConfig[\"merchantID\"] + '&fingerprint=' + fingerprint\n-            document.getElementsByTagName('head')[0].appendChild(el);\n-        });\n-    });\n-\n-} else {\n-    (function(callback) {\n-        var fingerprintOptions = {\n-            excludeScreenResolution: true,\n-            excludeColorDepth: false,\n-            excludeAvailableScreenResolution: true,\n-            excludePixelRatio: true,\n-            excludeWebGL: false,\n-            excludeCanvas: false,\n-        };\n-        if (typeof window.Fingerprint2 === 'undefined' || window.Fingerprint2.VERSION != \"1.4.1\") {\n-            var script = document.createElement(\"script\")\n-            script.type = \"text/javascript\";\n-            script.src = 'https://cdn.jsdelivr.net/fingerprintjs2/1.4.1/fingerprint2.min.js';\n-            script.onload = function() {\n-                if (window.Fingerprint2 === undefined) {\n-                    callback('');\n-                } else {\n-                    new Fingerprint2(fingerprintOptions).get(function(result, components) {\n-                        callback(result);\n-                    });\n-                }\n-            };\n-            document.getElementsByTagName(\"head\")[0].appendChild(script);\n-        } else {\n-            new Fingerprint2(fingerprintOptions).get(function(result, components) {\n-                callback(result);\n-            });\n-        }\n-    })(function(fingerprint) {\n-        var el = document.createElement('script');\n-        el.src = 'https://widget.sezzle.com/v1/javascript/price-widget?uuid=' + document.sezzleConfig[\"merchantID\"] + '&fingerprint=' + fingerprint\n-        document.getElementsByTagName('head')[0].appendChild(el);\n-    });\n-}\n\\ No newline at end of file\n+  track_id = getCookie(\"szl_uuid\")\n+  if (!track_id) {\n+    track_id = generateUUID();\n+    document.cookie = \"szl_uuid=\" + track_id + \";domain=.sezzle.com;path=/\";","path":"initial.js","position":91,"original_position":91,"commit_id":"01a7cb11859169c71478e56f511d9ae2c6c1b68b","original_commit_id":"01a7cb11859169c71478e56f511d9ae2c6c1b68b","user":{"login":"sanbornsen","id":2410474,"node_id":"MDQ6VXNlcjI0MTA0NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2410474?v=4","gravatar_id":"","url":"https://api.github.com/users/sanbornsen","html_url":"https://github.com/sanbornsen","followers_url":"https://api.github.com/users/sanbornsen/followers","following_url":"https://api.github.com/users/sanbornsen/following{/other_user}","gists_url":"https://api.github.com/users/sanbornsen/gists{/gist_id}","starred_url":"https://api.github.com/users/sanbornsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanbornsen/subscriptions","organizations_url":"https://api.github.com/users/sanbornsen/orgs","repos_url":"https://api.github.com/users/sanbornsen/repos","events_url":"https://api.github.com/users/sanbornsen/events{/privacy}","received_events_url":"https://api.github.com/users/sanbornsen/received_events","type":"User","site_admin":false},"body":"Use `'` instead of `\"`","created_at":"2018-12-21T10:32:54Z","updated_at":"2018-12-21T10:33:17Z","html_url":"https://github.com/sezzle/sezzle-js/pull/470#discussion_r243545227","pull_request_url":"https://api.github.com/repos/sezzle/sezzle-js/pulls/470","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/sezzle/sezzle-js/pulls/comments/243545227"},"html":{"href":"https://github.com/sezzle/sezzle-js/pull/470#discussion_r243545227"},"pull_request":{"href":"https://api.github.com/repos/sezzle/sezzle-js/pulls/470"}}},"pull_request":{"url":"https://api.github.com/repos/sezzle/sezzle-js/pulls/470","id":239175503,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5MTc1NTAz","html_url":"https://github.com/sezzle/sezzle-js/pull/470","diff_url":"https://github.com/sezzle/sezzle-js/pull/470.diff","patch_url":"https://github.com/sezzle/sezzle-js/pull/470.patch","issue_url":"https://api.github.com/repos/sezzle/sezzle-js/issues/470","number":470,"state":"open","locked":false,"title":"Widget tracking - Fingerprint to UUID","user":{"login":"sanbornsen","id":2410474,"node_id":"MDQ6VXNlcjI0MTA0NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2410474?v=4","gravatar_id":"","url":"https://api.github.com/users/sanbornsen","html_url":"https://github.com/sanbornsen","followers_url":"https://api.github.com/users/sanbornsen/followers","following_url":"https://api.github.com/users/sanbornsen/following{/other_user}","gists_url":"https://api.github.com/users/sanbornsen/gists{/gist_id}","starred_url":"https://api.github.com/users/sanbornsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanbornsen/subscriptions","organizations_url":"https://api.github.com/users/sanbornsen/orgs","repos_url":"https://api.github.com/users/sanbornsen/repos","events_url":"https://api.github.com/users/sanbornsen/events{/privacy}","received_events_url":"https://api.github.com/users/sanbornsen/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-17T15:03:48Z","updated_at":"2018-12-21T10:33:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f9c887f163392cb9e80e139c023264c533f019e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sezzle/sezzle-js/pulls/470/commits","review_comments_url":"https://api.github.com/repos/sezzle/sezzle-js/pulls/470/comments","review_comment_url":"https://api.github.com/repos/sezzle/sezzle-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sezzle/sezzle-js/issues/470/comments","statuses_url":"https://api.github.com/repos/sezzle/sezzle-js/statuses/01a7cb11859169c71478e56f511d9ae2c6c1b68b","head":{"label":"sanbornsen:fingerprint-to-uuid","ref":"fingerprint-to-uuid","sha":"01a7cb11859169c71478e56f511d9ae2c6c1b68b","user":{"login":"sanbornsen","id":2410474,"node_id":"MDQ6VXNlcjI0MTA0NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2410474?v=4","gravatar_id":"","url":"https://api.github.com/users/sanbornsen","html_url":"https://github.com/sanbornsen","followers_url":"https://api.github.com/users/sanbornsen/followers","following_url":"https://api.github.com/users/sanbornsen/following{/other_user}","gists_url":"https://api.github.com/users/sanbornsen/gists{/gist_id}","starred_url":"https://api.github.com/users/sanbornsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanbornsen/subscriptions","organizations_url":"https://api.github.com/users/sanbornsen/orgs","repos_url":"https://api.github.com/users/sanbornsen/repos","events_url":"https://api.github.com/users/sanbornsen/events{/privacy}","received_events_url":"https://api.github.com/users/sanbornsen/received_events","type":"User","site_admin":false},"repo":{"id":105875962,"node_id":"MDEwOlJlcG9zaXRvcnkxMDU4NzU5NjI=","name":"sezzle-js","full_name":"sanbornsen/sezzle-js","private":false,"owner":{"login":"sanbornsen","id":2410474,"node_id":"MDQ6VXNlcjI0MTA0NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2410474?v=4","gravatar_id":"","url":"https://api.github.com/users/sanbornsen","html_url":"https://github.com/sanbornsen","followers_url":"https://api.github.com/users/sanbornsen/followers","following_url":"https://api.github.com/users/sanbornsen/following{/other_user}","gists_url":"https://api.github.com/users/sanbornsen/gists{/gist_id}","starred_url":"https://api.github.com/users/sanbornsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanbornsen/subscriptions","organizations_url":"https://api.github.com/users/sanbornsen/orgs","repos_url":"https://api.github.com/users/sanbornsen/repos","events_url":"https://api.github.com/users/sanbornsen/events{/privacy}","received_events_url":"https://api.github.com/users/sanbornsen/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sanbornsen/sezzle-js","description":null,"fork":true,"url":"https://api.github.com/repos/sanbornsen/sezzle-js","forks_url":"https://api.github.com/repos/sanbornsen/sezzle-js/forks","keys_url":"https://api.github.com/repos/sanbornsen/sezzle-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanbornsen/sezzle-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanbornsen/sezzle-js/teams","hooks_url":"https://api.github.com/repos/sanbornsen/sezzle-js/hooks","issue_events_url":"https://api.github.com/repos/sanbornsen/sezzle-js/issues/events{/number}","events_url":"https://api.github.com/repos/sanbornsen/sezzle-js/events","assignees_url":"https://api.github.com/repos/sanbornsen/sezzle-js/assignees{/user}","branches_url":"https://api.github.com/repos/sanbornsen/sezzle-js/branches{/branch}","tags_url":"https://api.github.com/repos/sanbornsen/sezzle-js/tags","blobs_url":"https://api.github.com/repos/sanbornsen/sezzle-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanbornsen/sezzle-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanbornsen/sezzle-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanbornsen/sezzle-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanbornsen/sezzle-js/statuses/{sha}","languages_url":"https://api.github.com/repos/sanbornsen/sezzle-js/languages","stargazers_url":"https://api.github.com/repos/sanbornsen/sezzle-js/stargazers","contributors_url":"https://api.github.com/repos/sanbornsen/sezzle-js/contributors","subscribers_url":"https://api.github.com/repos/sanbornsen/sezzle-js/subscribers","subscription_url":"https://api.github.com/repos/sanbornsen/sezzle-js/subscription","commits_url":"https://api.github.com/repos/sanbornsen/sezzle-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanbornsen/sezzle-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanbornsen/sezzle-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanbornsen/sezzle-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanbornsen/sezzle-js/contents/{+path}","compare_url":"https://api.github.com/repos/sanbornsen/sezzle-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanbornsen/sezzle-js/merges","archive_url":"https://api.github.com/repos/sanbornsen/sezzle-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanbornsen/sezzle-js/downloads","issues_url":"https://api.github.com/repos/sanbornsen/sezzle-js/issues{/number}","pulls_url":"https://api.github.com/repos/sanbornsen/sezzle-js/pulls{/number}","milestones_url":"https://api.github.com/repos/sanbornsen/sezzle-js/milestones{/number}","notifications_url":"https://api.github.com/repos/sanbornsen/sezzle-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanbornsen/sezzle-js/labels{/name}","releases_url":"https://api.github.com/repos/sanbornsen/sezzle-js/releases{/id}","deployments_url":"https://api.github.com/repos/sanbornsen/sezzle-js/deployments","created_at":"2017-10-05T10:16:36Z","updated_at":"2017-10-05T10:16:38Z","pushed_at":"2018-12-20T13:55:49Z","git_url":"git://github.com/sanbornsen/sezzle-js.git","ssh_url":"git@github.com:sanbornsen/sezzle-js.git","clone_url":"https://github.com/sanbornsen/sezzle-js.git","svn_url":"https://github.com/sanbornsen/sezzle-js","homepage":null,"size":1313,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sezzle:master","ref":"master","sha":"6c9a254b66c7b8b13e5a0e0b49959e27a84ea814","user":{"login":"sezzle","id":17813865,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3ODEzODY1","avatar_url":"https://avatars2.githubusercontent.com/u/17813865?v=4","gravatar_id":"","url":"https://api.github.com/users/sezzle","html_url":"https://github.com/sezzle","followers_url":"https://api.github.com/users/sezzle/followers","following_url":"https://api.github.com/users/sezzle/following{/other_user}","gists_url":"https://api.github.com/users/sezzle/gists{/gist_id}","starred_url":"https://api.github.com/users/sezzle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sezzle/subscriptions","organizations_url":"https://api.github.com/users/sezzle/orgs","repos_url":"https://api.github.com/users/sezzle/repos","events_url":"https://api.github.com/users/sezzle/events{/privacy}","received_events_url":"https://api.github.com/users/sezzle/received_events","type":"Organization","site_admin":false},"repo":{"id":104642957,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ2NDI5NTc=","name":"sezzle-js","full_name":"sezzle/sezzle-js","private":false,"owner":{"login":"sezzle","id":17813865,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3ODEzODY1","avatar_url":"https://avatars2.githubusercontent.com/u/17813865?v=4","gravatar_id":"","url":"https://api.github.com/users/sezzle","html_url":"https://github.com/sezzle","followers_url":"https://api.github.com/users/sezzle/followers","following_url":"https://api.github.com/users/sezzle/following{/other_user}","gists_url":"https://api.github.com/users/sezzle/gists{/gist_id}","starred_url":"https://api.github.com/users/sezzle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sezzle/subscriptions","organizations_url":"https://api.github.com/users/sezzle/orgs","repos_url":"https://api.github.com/users/sezzle/repos","events_url":"https://api.github.com/users/sezzle/events{/privacy}","received_events_url":"https://api.github.com/users/sezzle/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sezzle/sezzle-js","description":null,"fork":false,"url":"https://api.github.com/repos/sezzle/sezzle-js","forks_url":"https://api.github.com/repos/sezzle/sezzle-js/forks","keys_url":"https://api.github.com/repos/sezzle/sezzle-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sezzle/sezzle-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sezzle/sezzle-js/teams","hooks_url":"https://api.github.com/repos/sezzle/sezzle-js/hooks","issue_events_url":"https://api.github.com/repos/sezzle/sezzle-js/issues/events{/number}","events_url":"https://api.github.com/repos/sezzle/sezzle-js/events","assignees_url":"https://api.github.com/repos/sezzle/sezzle-js/assignees{/user}","branches_url":"https://api.github.com/repos/sezzle/sezzle-js/branches{/branch}","tags_url":"https://api.github.com/repos/sezzle/sezzle-js/tags","blobs_url":"https://api.github.com/repos/sezzle/sezzle-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sezzle/sezzle-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sezzle/sezzle-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/sezzle/sezzle-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sezzle/sezzle-js/statuses/{sha}","languages_url":"https://api.github.com/repos/sezzle/sezzle-js/languages","stargazers_url":"https://api.github.com/repos/sezzle/sezzle-js/stargazers","contributors_url":"https://api.github.com/repos/sezzle/sezzle-js/contributors","subscribers_url":"https://api.github.com/repos/sezzle/sezzle-js/subscribers","subscription_url":"https://api.github.com/repos/sezzle/sezzle-js/subscription","commits_url":"https://api.github.com/repos/sezzle/sezzle-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/sezzle/sezzle-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/sezzle/sezzle-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/sezzle/sezzle-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/sezzle/sezzle-js/contents/{+path}","compare_url":"https://api.github.com/repos/sezzle/sezzle-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sezzle/sezzle-js/merges","archive_url":"https://api.github.com/repos/sezzle/sezzle-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sezzle/sezzle-js/downloads","issues_url":"https://api.github.com/repos/sezzle/sezzle-js/issues{/number}","pulls_url":"https://api.github.com/repos/sezzle/sezzle-js/pulls{/number}","milestones_url":"https://api.github.com/repos/sezzle/sezzle-js/milestones{/number}","notifications_url":"https://api.github.com/repos/sezzle/sezzle-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sezzle/sezzle-js/labels{/name}","releases_url":"https://api.github.com/repos/sezzle/sezzle-js/releases{/id}","deployments_url":"https://api.github.com/repos/sezzle/sezzle-js/deployments","created_at":"2017-09-24T12:41:54Z","updated_at":"2018-12-12T17:42:32Z","pushed_at":"2018-12-20T13:55:50Z","git_url":"git://github.com/sezzle/sezzle-js.git","ssh_url":"git@github.com:sezzle/sezzle-js.git","clone_url":"https://github.com/sezzle/sezzle-js.git","svn_url":"https://github.com/sezzle/sezzle-js","homepage":null,"size":1367,"stargazers_count":4,"watchers_count":4,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":32,"license":null,"forks":4,"open_issues":32,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sezzle/sezzle-js/pulls/470"},"html":{"href":"https://github.com/sezzle/sezzle-js/pull/470"},"issue":{"href":"https://api.github.com/repos/sezzle/sezzle-js/issues/470"},"comments":{"href":"https://api.github.com/repos/sezzle/sezzle-js/issues/470/comments"},"review_comments":{"href":"https://api.github.com/repos/sezzle/sezzle-js/pulls/470/comments"},"review_comment":{"href":"https://api.github.com/repos/sezzle/sezzle-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sezzle/sezzle-js/pulls/470/commits"},"statuses":{"href":"https://api.github.com/repos/sezzle/sezzle-js/statuses/01a7cb11859169c71478e56f511d9ae2c6c1b68b"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sanbornsen"}}