MCPcopy
hub / github.com/witheve/Eve / showConfirm

Function showConfirm

src/codemirror.js:13125–13132  ·  view source on GitHub ↗
(cm, text)

Source from the content-addressed store, hash-verified

13123 return regexp;
13124 }
13125 function showConfirm(cm, text) {
13126 if (cm.openNotification) {
13127 cm.openNotification('<span style="color: red">' + text + '</span>',
13128 {bottom: true, duration: 5000});
13129 } else {
13130 alert(text);
13131 }
13132 }
13133 function makePrompt(prefix, desc) {
13134 var raw = '<span style="font-family: monospace; white-space: pre">' +
13135 (prefix || "") + '<input type="text"></span>';

Callers 3

handleQueryFunction · 0.85
VimFunction · 0.85
doReplaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected