{"action":"created","issue":{"url":"https://api.github.com/repos/AddToCalendar/addtocalendar/issues/4","labels_url":"https://api.github.com/repos/AddToCalendar/addtocalendar/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/AddToCalendar/addtocalendar/issues/4/comments","events_url":"https://api.github.com/repos/AddToCalendar/addtocalendar/issues/4/events","html_url":"https://github.com/AddToCalendar/addtocalendar/issues/4","id":81145785,"number":4,"title":"Uncaught TypeError: s.split is not a function","user":{"login":"jamiewilson","id":3308673,"avatar_url":"https://avatars.githubusercontent.com/u/3308673?v=3","gravatar_id":"","url":"https://api.github.com/users/jamiewilson","html_url":"https://github.com/jamiewilson","followers_url":"https://api.github.com/users/jamiewilson/followers","following_url":"https://api.github.com/users/jamiewilson/following{/other_user}","gists_url":"https://api.github.com/users/jamiewilson/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiewilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiewilson/subscriptions","organizations_url":"https://api.github.com/users/jamiewilson/orgs","repos_url":"https://api.github.com/users/jamiewilson/repos","events_url":"https://api.github.com/users/jamiewilson/events{/privacy}","received_events_url":"https://api.github.com/users/jamiewilson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-26T21:35:16Z","updated_at":"2015-06-29T14:33:02Z","closed_at":null,"body":"Not sure what happened as it was working fine until today or yesterday, but I just started getting this error. Any ideas?\r\n\r\nConsole:\r\nUncaught TypeError: s.split is not a function............atc.min.js:1\r\n\r\nMy code in jquery:\r\n\r\n```javascript\r\n  (function () {\r\n    if (window.addtocalendar) if (typeof window.addtocalendar.start == \"function\")\r\n      return;\r\n    if (window.ifaddtocalendar == undefined) {\r\n      window.ifaddtocalendar = 1;\r\n      var d = document,\r\n          s = d.createElement('script'),\r\n          g = 'getElementsByTagName';\r\n      s.type = 'text/javascript';\r\n      s.charset = 'UTF-8';s.async = true;\r\n      s.src = ('https:' == window.location.protocol ? 'https' : 'http') + '://addtocalendar.com/atc/1.5/atc.min.js';\r\n      var h = d[g]('body')[0];h.appendChild(s);\r\n    }\r\n  })();\r\n```"},"comment":{"url":"https://api.github.com/repos/AddToCalendar/addtocalendar/issues/comments/116705702","html_url":"https://github.com/AddToCalendar/addtocalendar/issues/4#issuecomment-116705702","issue_url":"https://api.github.com/repos/AddToCalendar/addtocalendar/issues/4","id":116705702,"user":{"login":"Nicolai8","id":2829389,"avatar_url":"https://avatars.githubusercontent.com/u/2829389?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicolai8","html_url":"https://github.com/Nicolai8","followers_url":"https://api.github.com/users/Nicolai8/followers","following_url":"https://api.github.com/users/Nicolai8/following{/other_user}","gists_url":"https://api.github.com/users/Nicolai8/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicolai8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicolai8/subscriptions","organizations_url":"https://api.github.com/users/Nicolai8/orgs","repos_url":"https://api.github.com/users/Nicolai8/repos","events_url":"https://api.github.com/users/Nicolai8/events{/privacy}","received_events_url":"https://api.github.com/users/Nicolai8/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T14:33:02Z","updated_at":"2015-06-29T14:33:02Z","body":"Got the same error:\r\n\r\nthe error occurs when script checks if element's class contains \"addtocalendar\" but JS .className is undefined:\r\n\r\n    var s = r[i].className;\r\n    if (s.split(\" \").indexOf(\"addtocalendar\") != -1) {"}}