You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
384 B
16 lines
384 B
var selection = document.getSelection();
|
|
|
|
document.addEventListener('DOMContentLoaded', function(event) {
|
|
setTimeout(function() {
|
|
if (!selection.rangeCount) { // for demo purposes only
|
|
return;
|
|
}
|
|
reselect = module.exports();
|
|
setTimeout(function() {
|
|
reselect();
|
|
console.log('reselected');
|
|
}, 1000);
|
|
|
|
console.log('deselected');
|
|
}, 2000);
|
|
}); |