Skip to content

Commit

Permalink
simplify example
Browse files Browse the repository at this point in the history
  • Loading branch information
fzumstein committed Oct 20, 2024
1 parent 0bbde32 commit f027ff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/static/js/core/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const nameForm = {
registerAlpineComponent("nameForm", nameForm);

const appLoader = {
init: async function () {
url: "",
async init() {
let bookName = await xlwings.getActiveBookName();
// Works with both an unsaved book ("Book1") as well as a saved one "Book1.xlsx"
if (bookName.includes("Book1")) {
Expand All @@ -23,6 +24,5 @@ const appLoader = {
this.$dispatch("app:loadTaskpane");
});
},
url: "",
};
registerAlpineComponent("appLoader", appLoader);

0 comments on commit f027ff8

Please sign in to comment.