Update the default pad #1

This commit is contained in:
yflory
2017-02-27 14:29:48 +01:00
parent d4bf7cf9aa
commit 95853debf9
3 changed files with 13 additions and 1 deletions

View File

@@ -1903,9 +1903,11 @@ define([
var createReadme = function (proxy, cb) {
if (proxy.initializing) {
var hash = Cryptpad.createRandomHash();
console.log(Messages.driveReadme);
Get.put(hash, Messages.driveReadme, function (e) {
if (e) { console.error(e); }
var href = '/pad/#' + hash;
console.log(href);
proxy.drive[UNSORTED].push(href);
proxy.drive[FILES_DATA].push({
href: href,