Skip to content

Instantly share code, notes, and snippets.

@cgfarmer4
Last active August 29, 2015 13:57
Access top frame/window from iframe in node-webkit
// Update package.json with the following
"node-remote": "http://example.com",
"chromium-args": "--disable-web-security"
// HTML: <iframe src="http://example.com" nwfaketop></iframe>
parent.window.root.GLOBAL.window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment