-
-
Save bryangingechen/03cdddd2b669b90dfdf09268338444bb to your computer and use it in GitHub Desktop.
override test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>override embed test</title> | |
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@observablehq/inspector@3/dist/inspector.css"> | |
<body> | |
<script type="module"> | |
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js"; | |
import define from "https://api.observablehq.com/d/90c7d6a9d26692a1.js?v=3"; | |
const runtime = new Runtime(); | |
const main = runtime.module(define, Inspector.into(document.body)); | |
main.redefine("a", () => { | |
console.log("ran new a"); | |
return 4; | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment