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
const protectedData = new WeakMap(); | |
function render(target) { | |
const { user, gist, file, height, width } = target; | |
const { shadow } = protectedData.get(target); | |
const iframe = document.createElement('iframe'); | |
const script = document.createElement('script'); | |
const link = document.createElement('link'); | |
const src = new URL(`/${user}/${gist}.js`, 'https://gist.github.com'); | |
const controller = new AbortController(); |