1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-03 02:33:15 +00:00
TiddlyWiki5/core/modules/savers/download.js
Jeremy Ruston c340082653 Added primitive save changes mechanism
Works in Firefox for now
2012-07-10 23:18:44 +01:00

47 lines
715 B
JavaScript

/*\
title: $:/core/modules/savers/download.js
type: application/javascript
module-type: saver
Handles saving changes via HTML5's download APIs
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
/*
Select the appropriate saver module and set it up
*/
var DownloadSaver = function() {
};
DownloadSaver.prototype.save = function() {
};
/*
Information about this saver
*/
DownloadSaver.prototype.info = {
name: "download",
priority: 0
};
/*
Static method that returns true if this saver is capable of working
*/
exports.canSave = function() {
return true;
};
/*
Create an instance of this saver
*/
exports.create = function() {
return new DownloadSaver();
};
})();