add getScreenshotBlobUrl

This commit is contained in:
Harvey Zack committed 2019-04-19 14:28:33 +08:00
1 parent 078507356a
commit 965e3e008f
5 files changed
+51 -5

No files matched your search

+3 -3
View File
@@ -60,12 +60,12 @@ export function debounce(func, wait, context) {
fn.clearTimeout = function ct() {
clearTimeout(timeout);
};
return fn;
}
export function isObject(item) {
return (item && typeof item === 'object' && !Array.isArray(item));
return item && typeof item === 'object' && !Array.isArray(item);
}
export function isElement(item) {
@@ -179,4 +179,4 @@ export function downloadImage(url, name) {
document.body.appendChild(elink);
elink.click();
document.body.removeChild(elink);
}
}