Append warning to the write element, refs #1746

This commit is contained in:
Simon Willison 2022-05-20 13:44:23 -07:00
commit 4446075334

View file

@ -17,11 +17,7 @@ jQuery(function ($) {
</div>` </div>`
); );
warning.find("a").attr("href", stableUrl); warning.find("a").attr("href", stableUrl);
var body = $("div.body"); $("article[role=main]").prepend(warning);
if (!body.length) {
body = $("div.document");
}
body.prepend(warning);
} }
}); });
}); });