MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / restoreSelection

Function restoreSelection

notes.js:403–409  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

401
402 // 恢复选区的函数
403 function restoreSelection() {
404 if (savedRange) {
405 const selection = window.getSelection();
406 selection.removeAllRanges();
407 selection.addRange(savedRange);
408 }
409 }
410
411 // 为工具栏添加mousedown事件监听器
412 bar.addEventListener('mousedown', (e) => {

Callers 2

buildToolbarFunction · 0.85
updateColorHistoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected