{"action":"created","issue":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4014","labels_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4014/labels{/name}","comments_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4014/comments","events_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4014/events","html_url":"https://github.com/pouchdb/pouchdb/issues/4014","id":92011443,"number":4014,"title":"Having a variable called URL kills PouchDB","user":{"login":"glynnbird","id":697925,"avatar_url":"https://avatars.githubusercontent.com/u/697925?v=3","gravatar_id":"","url":"https://api.github.com/users/glynnbird","html_url":"https://github.com/glynnbird","followers_url":"https://api.github.com/users/glynnbird/followers","following_url":"https://api.github.com/users/glynnbird/following{/other_user}","gists_url":"https://api.github.com/users/glynnbird/gists{/gist_id}","starred_url":"https://api.github.com/users/glynnbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glynnbird/subscriptions","organizations_url":"https://api.github.com/users/glynnbird/orgs","repos_url":"https://api.github.com/users/glynnbird/repos","events_url":"https://api.github.com/users/glynnbird/events{/privacy}","received_events_url":"https://api.github.com/users/glynnbird/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-30T07:18:55Z","updated_at":"2015-07-06T16:53:02Z","closed_at":"2015-07-06T16:53:02Z","body":"I had code like this:\r\n\r\n```js\r\nvar URL = \"https://myurl.cloudant.com/mydb\";\r\nvar db = new PouchDB(\"mydb\");\r\ndb.replicate.from(URL);\r\n```\r\n\r\nand PouchDB died with `Uncaught TypeError: URL.createObjectURL is not a function`\r\n\r\nThis is th the code in `checkBlobSupport` that fails\r\n\r\n```js\r\n...\r\n        var storedBlob = e.target.result;\r\n        var url = URL.createObjectURL(storedBlob);\r\n...\r\n```\r\n\r\nIf I change my variable name to avoid the clash with \"URL\", then it everything works as expected e.g.\r\n```js\r\nvar U = \"https://myurl.cloudant.com/mydb\";\r\nvar db = new PouchDB(\"mydb\");\r\ndb.replicate.from(U);\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/comments/118923432","html_url":"https://github.com/pouchdb/pouchdb/issues/4014#issuecomment-118923432","issue_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4014","id":118923432,"user":{"login":"daleharvey","id":37787,"avatar_url":"https://avatars.githubusercontent.com/u/37787?v=3","gravatar_id":"","url":"https://api.github.com/users/daleharvey","html_url":"https://github.com/daleharvey","followers_url":"https://api.github.com/users/daleharvey/followers","following_url":"https://api.github.com/users/daleharvey/following{/other_user}","gists_url":"https://api.github.com/users/daleharvey/gists{/gist_id}","starred_url":"https://api.github.com/users/daleharvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daleharvey/subscriptions","organizations_url":"https://api.github.com/users/daleharvey/orgs","repos_url":"https://api.github.com/users/daleharvey/repos","events_url":"https://api.github.com/users/daleharvey/events{/privacy}","received_events_url":"https://api.github.com/users/daleharvey/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T16:53:02Z","updated_at":"2015-07-06T16:53:02Z","body":"Yeh that would work but its more code to fix the very rare case of things being redefined after the fact, this happens with all dom globals (indexeddb etc) I talked to the dom team at firefox and theres basically no fix except possible future support for modules, so closing this out"}}