Stackedit/js/settings.js

30 lines
823 B
JavaScript
Raw Normal View History

2013-05-27 19:45:33 +00:00
define([
2013-05-27 22:13:41 +00:00
"underscore",
"config"
2013-05-27 19:45:33 +00:00
], function(_) {
2013-05-29 19:55:23 +00:00
var settings = {
layoutOrientation: "horizontal",
lazyRendering: true,
editorFontSize: 14,
defaultContent: "\n\n\n> Written with [StackEdit](http://benweet.github.io/stackedit/).",
commitMsg: "Published by http://benweet.github.io/stackedit",
template: [
2013-05-27 19:45:33 +00:00
'<!DOCTYPE html>\n',
2013-05-29 19:55:23 +00:00
'<html>\n',
'<head>\n',
'<title><%= documentTitle %></title>\n',
'</head>\n',
'<body><%= documentHTML %></body>\n',
'</html>'
].join(""),
sshProxy: SSH_PROXY_URL,
extensionSettings: {}
};
if(_.has(localStorage, "settings")) {
_.extend(settings, JSON.parse(localStorage.settings));
}
return settings;
2013-05-27 19:45:33 +00:00
});