1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-26 16:20:09 +02:00

takeScreenshot: remove debugger

This commit is contained in:
Kushagra Gour
2018-06-17 16:07:25 +05:30
parent c52a2f45f3
commit fb016d9580

View File

@@ -1,6 +1,4 @@
import {
handleDownloadsPermission
} from "./utils";
import { handleDownloadsPermission } from './utils';
function saveScreenshot(dataURI) {
// convert base64 to raw binary data held in a string
@@ -45,7 +43,8 @@ function saveScreenshot(dataURI) {
'/temporary/' +
fileName;
chrome.downloads.download({
chrome.downloads.download(
{
url: filePath
},
function() {
@@ -68,7 +67,8 @@ function saveScreenshot(dataURI) {
size,
fs => {
fs.root.getFile(
fileName, {
fileName,
{
create: true
},
fileEntry => {
@@ -116,9 +116,9 @@ export function takeScreenshot(boundRect) {
}
setTimeout(() => {
debugger
chrome.tabs.captureVisibleTab(
null, {
null,
{
format: 'png',
quality: 100
},
@@ -135,4 +135,4 @@ export function takeScreenshot(boundRect) {
trackEvent('ui', 'takeScreenshotBtnClick');
});
};
}