Răsfoiți Sursa

web: recipes iframe loads /recipes with the token (the page document itself is token-gated)

Alexander Korolev 1 lună în urmă
părinte
comite
36872f238c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/web/ui.html

+ 1 - 1
src/web/ui.html

@@ -1703,7 +1703,7 @@ function openRecipes(g) {
   recipesWin = makeWin({
   recipesWin = makeWin({
     id: "win-recipes", title: "Recipes", x: r("left", 24), y: r("top", 24),
     id: "win-recipes", title: "Recipes", x: r("left", 24), y: r("top", 24),
     w: r("width", Math.min(1180, innerWidth - 48)), h: r("height", Math.min(760, innerHeight - 80)),
     w: r("width", Math.min(1180, innerWidth - 48)), h: r("height", Math.min(760, innerHeight - 80)),
-    bodyHtml: `<iframe src="/recipes" title="recipes report"></iframe>`,
+    bodyHtml: `<iframe src="${auth("/recipes")}" title="recipes report"></iframe>`,
     extraCls: "recwin",
     extraCls: "recwin",
     removeOnClose: true,
     removeOnClose: true,
     onClosed: () => { recipesWin = null; },
     onClosed: () => { recipesWin = null; },