Skip to content

Commit 13f5b64

Browse files
authored
Bugfix: Broken Flycricket integration (#267)
* fix flycricket deploy issue * update converted code
1 parent 8643c89 commit 13f5b64

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

public/js/flycricket.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/main.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/utils.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/flycricket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function fc_deploy_simple() {
1+
window.fc_deploy_simple = function () {
22
var form = document.getElementById("fc-form");
33

44
// fill in the body with the html content

src/js/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ const app = createApp({
205205
toggleFaqModalVisibility() {
206206
this.showFaqModal = !this.showFaqModal;
207207
},
208+
fc_deploy_simple() {
209+
fc_deploy_simple();
210+
}
208211
},
209212
});
210213

src/js/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ function getRawHTML(content, title) {
5252
return html
5353
}
5454

55-
function getContent(id) {
56-
var content = document.getElementById(id)
57-
return content.innerHTML
55+
window.getContent = function(id) {
56+
const content = document.getElementById(id);
57+
return content ? content.innerHTML : '';
5858
}
5959

6060
function getTitle(id) {

0 commit comments

Comments
 (0)