Skip to content

Instantly share code, notes, and snippets.

@NickClark
Created August 4, 2017 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NickClark/c913c92f286c4f3e3b42fbd32735bf39 to your computer and use it in GitHub Desktop.
Save NickClark/c913c92f286c4f3e3b42fbd32735bf39 to your computer and use it in GitHub Desktop.
Type issue in nw.js
<!DOCTYPE html>
<html lang="en">
<head>
<title>Test</title>
</head>
<body>
<b>
<script>
document.write(
chrome.extension.getBackgroundPage().Function === Function
);
</script>
</b>
- should be true
</body>
</html>
{
"name": "test",
"main": "index.html",
"chromium-args": "--mixed-context"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment