Heroku introduced a major update today to the platform. In addition to the press release and blog post, here is a list of all updated content:
Devcenter.heroku.com
Heroku introduced a major update today to the platform. In addition to the press release and blog post, here is a list of all updated content:
Devcenter.heroku.com
// Injecting JavaScript | |
// Basic compact | |
document.body.appendChild(document.createElement("script")).src="foo.js" | |
// Function wrapped | |
(function(d){d.body.appendChild(d.createElement("script")).src="foo.js"})(document) | |
// With "with" | |
with(document){body.appendChild(createElement("script")).src="foo.js"} | |
// Injecting CSS |
_XMLHttpRequest = XMLHttpRequest; | |
XMLHttpRequest = function () { | |
Object.defineProperty(this, | |
"__onreadystatechange", | |
{value: null, | |
writable: true, | |
enumerable: false}); | |
Object.defineProperty(this, | |
"onreadystatechange", |
// If no exception is passed into 'getScriptName', it will only | |
// retrieve the URL of the script where 'getScriptName' is defined. | |
// In order to get the URL of a different script file, you must | |
// pass an exception generated in this script file to 'getScriptName'. | |
try { | |
(0)(); | |
} catch(ex) { | |
getScriptName(ex, onScriptNameKnown); | |
} |