Trying to get short link to show

This commit is contained in:
Martin Donnelly 2020-04-17 15:20:33 +01:00
parent 2b19d6f97d
commit 4b462f0ad2
2 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -1756,7 +1756,7 @@ var app = (function () {
const { console: console_1 } = globals; const { console: console_1 } = globals;
const file = "src/App.svelte"; const file = "src/App.svelte";
// (53:12) {#if link !== ''} // (53:12) {#if link.length>0}
function create_if_block(ctx) { function create_if_block(ctx) {
let div1; let div1;
let div0; let div0;
@ -1771,12 +1771,12 @@ var app = (function () {
t = text(/*link*/ ctx[1]); t = text(/*link*/ ctx[1]);
attr_dev(a, "class", "result"); attr_dev(a, "class", "result");
attr_dev(a, "href", /*link*/ ctx[1]); attr_dev(a, "href", /*link*/ ctx[1]);
add_location(a, file, 55, 24, 1729); add_location(a, file, 55, 24, 1731);
attr_dev(div0, "class", "mui-col-lg-12"); attr_dev(div0, "class", "mui-col-lg-12");
attr_dev(div0, "id", "link"); attr_dev(div0, "id", "link");
add_location(div0, file, 54, 20, 1667); add_location(div0, file, 54, 20, 1669);
attr_dev(div1, "class", "mui-row"); attr_dev(div1, "class", "mui-row");
add_location(div1, file, 53, 16, 1625); add_location(div1, file, 53, 16, 1627);
}, },
m: function mount(target, anchor) { m: function mount(target, anchor) {
insert_dev(target, div1, anchor); insert_dev(target, div1, anchor);
@ -1800,7 +1800,7 @@ var app = (function () {
block, block,
id: create_if_block.name, id: create_if_block.name,
type: "if", type: "if",
source: "(53:12) {#if link !== ''}", source: "(53:12) {#if link.length>0}",
ctx ctx
}); });
@ -1823,7 +1823,7 @@ var app = (function () {
let button_disabled_value; let button_disabled_value;
let t6; let t6;
let dispose; let dispose;
let if_block = /*link*/ ctx[1] !== "" && create_if_block(ctx); let if_block = /*link*/ ctx[1].length > 0 && create_if_block(ctx);
const block = { const block = {
c: function create() { c: function create() {
@ -1899,7 +1899,7 @@ var app = (function () {
prop_dev(button, "disabled", button_disabled_value); prop_dev(button, "disabled", button_disabled_value);
} }
if (/*link*/ ctx[1] !== "") { if (/*link*/ ctx[1].length > 0) {
if (if_block) { if (if_block) {
if_block.p(ctx, dirty); if_block.p(ctx, dirty);
} else { } else {