{"action":"created","issue":{"url":"https://api.github.com/repos/AmauriC/tarteaucitron.js/issues/81","repository_url":"https://api.github.com/repos/AmauriC/tarteaucitron.js","labels_url":"https://api.github.com/repos/AmauriC/tarteaucitron.js/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/AmauriC/tarteaucitron.js/issues/81/comments","events_url":"https://api.github.com/repos/AmauriC/tarteaucitron.js/issues/81/events","html_url":"https://github.com/AmauriC/tarteaucitron.js/issues/81","id":318038117,"node_id":"MDU6SXNzdWUzMTgwMzgxMTc=","number":81,"title":"Service \"iframe\" error: Cannot read property 'name' of undefined","user":{"login":"achterbahn","id":1411919,"node_id":"MDQ6VXNlcjE0MTE5MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/1411919?v=4","gravatar_id":"","url":"https://api.github.com/users/achterbahn","html_url":"https://github.com/achterbahn","followers_url":"https://api.github.com/users/achterbahn/followers","following_url":"https://api.github.com/users/achterbahn/following{/other_user}","gists_url":"https://api.github.com/users/achterbahn/gists{/gist_id}","starred_url":"https://api.github.com/users/achterbahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achterbahn/subscriptions","organizations_url":"https://api.github.com/users/achterbahn/orgs","repos_url":"https://api.github.com/users/achterbahn/repos","events_url":"https://api.github.com/users/achterbahn/events{/privacy}","received_events_url":"https://api.github.com/users/achterbahn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-04-26T13:48:41Z","updated_at":"2018-05-31T09:21:56Z","closed_at":null,"author_association":"NONE","body":"Installing the service \"iframe\"\r\n\r\n- `<div class=\"tac_iframe\" width=\"930\" height=\"500\" data-url=\"https://maps.google.ch/maps?f=[...]output=embed\"> </div>`\r\n\r\n```  //Google Maps Iframe\r\n    var tarteaucitron_interval = setInterval(function() {\r\n        if (typeof tarteaucitron.services.iframe.name == 'undefined') {\r\n            return;\r\n        }\r\n        clearInterval(tarteaucitron_interval);\r\n        \r\n        tarteaucitron.services.iframe.name = 'Google Maps';\r\n        tarteaucitron.services.iframe.uri = 'https://myuri.com/disclaimer';\r\n        tarteaucitron.services.iframe.cookies = ['APISID','CONSENT','HSID','NID','SAPISID','SID','SIDCC','SSID'];\r\n    }, 10);\r\n    (tarteaucitron.job = tarteaucitron.job || []).push('iframe');\r\n``` \r\n\r\nGives me the error in the console:\r\n`TypeError: Cannot read property 'name' of undefined`\r\n\r\nWhat am I missing?\r\n\r\nBTW: nice script! Thanks for the work. "},"comment":{"url":"https://api.github.com/repos/AmauriC/tarteaucitron.js/issues/comments/393470179","html_url":"https://github.com/AmauriC/tarteaucitron.js/issues/81#issuecomment-393470179","issue_url":"https://api.github.com/repos/AmauriC/tarteaucitron.js/issues/81","id":393470179,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzQ3MDE3OQ==","user":{"login":"malvese","id":193492,"node_id":"MDQ6VXNlcjE5MzQ5Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/193492?v=4","gravatar_id":"","url":"https://api.github.com/users/malvese","html_url":"https://github.com/malvese","followers_url":"https://api.github.com/users/malvese/followers","following_url":"https://api.github.com/users/malvese/following{/other_user}","gists_url":"https://api.github.com/users/malvese/gists{/gist_id}","starred_url":"https://api.github.com/users/malvese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malvese/subscriptions","organizations_url":"https://api.github.com/users/malvese/orgs","repos_url":"https://api.github.com/users/malvese/repos","events_url":"https://api.github.com/users/malvese/events{/privacy}","received_events_url":"https://api.github.com/users/malvese/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T09:21:56Z","updated_at":"2018-05-31T09:21:56Z","author_association":"NONE","body":"I'm also looking for a way to use TaC with Google maps embeds…\r\nAnother issue I have is that the div with class `tac_iframe` isn't *replaced* by the iframe. The iframe is created inside of it."}}
{"actor":{"display_login":"malvese"}}