mirror of
https://github.com/chinchang/web-maker.git
synced 2025-08-06 13:26:36 +02:00
resolve n merge master
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Web Maker",
|
||||
"version": "1.7.2",
|
||||
"version": "1.7.4",
|
||||
"manifest_version": 2,
|
||||
"description": "Convert new tabs into an offline playground for your web experiments",
|
||||
"homepage_url": "https://kushagragour.in/lab/web-maker",
|
||||
|
@@ -546,11 +546,21 @@
|
||||
return contents;
|
||||
}
|
||||
function createPreviewFile(html, css, js) {
|
||||
var contents = getCompleteHtml(html, css, js)
|
||||
var contents = getCompleteHtml(html, css, js);
|
||||
var fileWritten = false;
|
||||
|
||||
var blob = new Blob([ contents ], { type: "text/plain;charset=UTF-8" });
|
||||
|
||||
// Track if people have written code.
|
||||
if (!trackEvent.hasTrackedCode && (html || css || js)) {
|
||||
trackEvent('fn', 'hasCode');
|
||||
trackEvent.hasTrackedCode = true;
|
||||
}
|
||||
// Track when people actually are working.
|
||||
trackEvent.previewCount = (trackEvent.previewCount || 0) + 1;
|
||||
if (trackEvent.previewCount === 4) {
|
||||
trackEvent('fn', 'usingPreview');
|
||||
}
|
||||
|
||||
function errorHandler() { console.utils.log(arguments); }
|
||||
|
||||
window.webkitRequestFileSystem(window.TEMPORARY, 1024 * 1024 * 5, function(fs){
|
||||
|
Reference in New Issue
Block a user