mirror of
https://github.com/chinchang/web-maker.git
synced 2025-02-24 07:03:13 +01:00
remove logs
This commit is contained in:
parent
a678d6997a
commit
d7303ded7f
@ -743,13 +743,13 @@ onboardDontShowInTabOptionBtn, TextareaAutoComplete */
|
|||||||
var fileWritten = false;
|
var fileWritten = false;
|
||||||
function errorHandler() { utils.log(arguments); }
|
function errorHandler() { utils.log(arguments); }
|
||||||
|
|
||||||
utils.log('writing file ', name);
|
// utils.log('writing file ', name);
|
||||||
window.webkitRequestFileSystem(window.TEMPORARY, 1024 * 1024 * 5, function(fs){
|
window.webkitRequestFileSystem(window.TEMPORARY, 1024 * 1024 * 5, function(fs){
|
||||||
fs.root.getFile(name, { create: true }, function(fileEntry) {
|
fs.root.getFile(name, { create: true }, function(fileEntry) {
|
||||||
fileEntry.createWriter(function(fileWriter) {
|
fileEntry.createWriter(function(fileWriter) {
|
||||||
function onWriteComplete() {
|
function onWriteComplete() {
|
||||||
if (fileWritten) {
|
if (fileWritten) {
|
||||||
utils.log('file written ', name);
|
// utils.log('file written ', name);
|
||||||
return cb();
|
return cb();
|
||||||
}
|
}
|
||||||
fileWritten = true;
|
fileWritten = true;
|
||||||
@ -761,7 +761,7 @@ onboardDontShowInTabOptionBtn, TextareaAutoComplete */
|
|||||||
fileWriter.onwriteend = onWriteComplete;
|
fileWriter.onwriteend = onWriteComplete;
|
||||||
// Empty the file contents
|
// Empty the file contents
|
||||||
fileWriter.truncate(0);
|
fileWriter.truncate(0);
|
||||||
utils.log('truncating file ', name);
|
// utils.log('truncating file ', name);
|
||||||
|
|
||||||
}, errorHandler);
|
}, errorHandler);
|
||||||
}, errorHandler);
|
}, errorHandler);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user