(e, type)
| 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') { |
nothing calls this directly
no test coverage detected