When I click on the screenshot button from tool menu it shows.
//screenshot
document
.getElementById('tool-screenshot')
.addEventListener('click', function () {
sketchpad.screenshot(
function (blob) {
saveFile(blob, sketchpad.room.room_token + '.png', 'image/png');
},
'image/png',
1
);
});
When I click on the screenshot button from tool menu it shows.
Here is the code of screenshot