Skip to content

Commit

Permalink
Remove vars#preview-content
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantk232 committed Aug 23, 2024
1 parent e83a379 commit a8c1340
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion components/editor/editor-bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion components/editor/editor-bundle.js.map

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions components/editor/editor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ const VAR_CURRENT_FILE = v`current-file`;
const VAR_CONTEXT_MENU_PATH = v`context-menu-path`;
const VAR_MODIFIED_FILES = v`modified-files`;
const VAR_ONLY_MODIFIED_FILES = v`only-show-modified-files`;
const VAR_PREVIEW_CONTENT = v`preview-content`;

window.ide_update_ftd_var = function (name, value) {
value = JSON.parse(value);
Expand All @@ -138,12 +137,6 @@ window.ide_update_ftd_var = function (name, value) {
if (name === VAR_MODIFIED_FILES) update_modified_files(value);
if (name === VAR_CONTEXT_MENU_PATH) update_context_menu_path(value);

if (name === VAR_PREVIEW_CONTENT) {
console.log('ide_update_ftd_var', name, "<html omitted>");
} else {
console.log('ide_update_ftd_var', name, value);
}

ftd.set_value(name, value);
const g = ftd.get_value;

Expand Down
3 changes: 0 additions & 3 deletions components/editor/vars.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ url: /foo/blog/images/first-image.jpg

-- string $preview-url: https://todayhasbeen.com

-- string $preview-content: <h1>loading...</h1>


-- main-editor.doc $doc:
file-name: FASTN.ftd
language: ftd
Expand Down

0 comments on commit a8c1340

Please sign in to comment.