Skip to content

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
Docker images

See merge request minecraft/convert-minecraft-java-texture-to-bedrock/webapp!47
  • Loading branch information
ozelot379 committed Jun 11, 2020
2 parents 5bf7cf7 + 4b418e9 commit c88c25e
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,24 @@ import "./../css/style.less";

document.addEventListener("DOMContentLoaded", () => {
const toastMessage = document.getElementById("toastMessage");
OfflinePluginRuntime.install({
onInstalled: () => {
showToastMessage("Ready for install and use offline", 5000, () => {

});
},
onUpdateReady: () => {
OfflinePluginRuntime.applyUpdate();
},
onUpdated: () => {
showToastMessage("Update installed - Reloading ...", 2000, () => {
location.reload();
});
}
});
if (location.hostname !== "localhost" && location.hostname !== "127.0.0.1") {
OfflinePluginRuntime.install({
onInstalled: () => {
showToastMessage("Ready for install and use offline", 5000, () => {

});
},
onUpdateReady: () => {
OfflinePluginRuntime.applyUpdate();
},
onUpdated: () => {
showToastMessage("Update installed - Reloading ...", 2000, () => {
location.reload();
});
}
});
}

const selectInputFileButton = document.getElementById("selectInputFileButton");
selectInputFileButton.addEventListener("change", startConvert);
Expand Down

0 comments on commit c88c25e

Please sign in to comment.