feat: unify runtime API signatures

This commit is contained in:
Lea Anthony
2019-06-22 08:36:11 +10:00
parent d3cd3d43bd
commit 36e575e0a2
8 changed files with 58 additions and 23 deletions

View File

@@ -9,9 +9,9 @@
export default {
// The main function
// Passes the main Wails object to the callback if given.
Start: function(callback) {
Start: function (callback) {
if (callback) {
window.wails.events.on("wails:ready", callback);
window.wails.Events.On("wails:ready", callback);
}
}
};

View File

@@ -9,9 +9,9 @@
export default {
// The main function
// Passes the main Wails object to the callback if given.
Start: function(callback) {
Start: function (callback) {
if (callback) {
window.wails.events.on("wails:ready", callback);
window.wails.Events.On("wails:ready", callback);
}
}
};