MCPcopy Create free account
hub / github.com/clair-design/clair / open

Function open

docs/plugins/codepen.js:45–54  ·  view source on GitHub ↗
(e, type)

Source from the content-addressed store, hash-verified

43 }
44 },
45 open (e, type) {
46 const node = getPreDOM(e)
47
48 if (node) {
49 const config = extractVue(node.textContent, type)
50 codepenVm.type = type === 'codesandbox' ? 'codesandbox' : 'codepen'
51 codepenVm.config = Object.assign({}, codepenVm.config, config)
52 codepenVm.$nextTick(() => codepenVm.$el.submit())
53 }
54 }
55 }
56
57 if (typeof document !== 'undefined') {

Callers

nothing calls this directly

Calls 2

getPreDOMFunction · 0.85
extractVueFunction · 0.85

Tested by

no test coverage detected