Use present mode in embed code
This commit is contained in:
@@ -443,7 +443,7 @@ define([
|
|||||||
$shareBlock.find('a.cp-toolbar-share-view-embed').click(function () {
|
$shareBlock.find('a.cp-toolbar-share-view-embed').click(function () {
|
||||||
var url = origin + pathname + '#' + hashes.viewHash;
|
var url = origin + pathname + '#' + hashes.viewHash;
|
||||||
var parsed = Cryptpad.parsePadUrl(url);
|
var parsed = Cryptpad.parsePadUrl(url);
|
||||||
url = origin + parsed.getUrl({embed: true});
|
url = origin + parsed.getUrl({embed: true, present: true});
|
||||||
// Alertify content
|
// Alertify content
|
||||||
var $content = $('<div>');
|
var $content = $('<div>');
|
||||||
$('<input>', {'style':'display:none;'}).appendTo($content);
|
$('<input>', {'style':'display:none;'}).appendTo($content);
|
||||||
|
|||||||
Reference in New Issue
Block a user