Skip to content

Instantly share code, notes, and snippets.

@cgfarmer4
Last active August 29, 2015 13:57
Show Gist options
  • Save cgfarmer4/9383541 to your computer and use it in GitHub Desktop.
Save cgfarmer4/9383541 to your computer and use it in GitHub Desktop.
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