mirror of
https://github.com/taigrr/wails.git
synced 2026-04-15 19:30:49 -07:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f34fc9c654 | ||
|
|
cd70dc4f16 | ||
|
|
7036a3183e |
@@ -174,7 +174,7 @@ It is recommended at this stage to read the comprehensive documentation at [http
|
|||||||
<a href="https://github.com/RH12503"><img src="https://github.com/RH12503.png?size=40" width="40"/></a>
|
<a href="https://github.com/RH12503"><img src="https://github.com/RH12503.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/hi019"><img src="https://github.com/hi019.png?size=40" width="40"/></a></a>
|
<a href="https://github.com/hi019"><img src="https://github.com/hi019.png?size=40" width="40"/></a></a>
|
||||||
<a href="https://github.com/Igogrek"><img src="https://github.com/Igogrek.png?size=40" width="40"/></a></a>
|
<a href="https://github.com/Igogrek"><img src="https://github.com/Igogrek.png?size=40" width="40"/></a></a>
|
||||||
|
<a href="https://github.com/aschey"><img src="https://github.com/aschey.png?size=40" width="40"/></a></a>
|
||||||
|
|
||||||
## Special Mentions
|
## Special Mentions
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
// Version - Wails version
|
// Version - Wails version
|
||||||
const Version = "v1.16.2"
|
const Version = "v1.16.3"
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ func newConfig(userConfig *AppConfig) (*AppConfig, error) {
|
|||||||
MaxWidth: -1,
|
MaxWidth: -1,
|
||||||
MaxHeight: -1,
|
MaxHeight: -1,
|
||||||
Title: "My Wails App",
|
Title: "My Wails App",
|
||||||
Colour: "#FFF", // White by default
|
Colour: "",
|
||||||
HTML: defaultHTML,
|
HTML: defaultHTML,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -113,11 +113,14 @@ func (w *WebView) Initialise(config interfaces.AppConfig, ipc interfaces.IPCMana
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SignalManager.OnExit(w.Exit)
|
// SignalManager.OnExit(w.Exit)
|
||||||
|
|
||||||
// Set colour
|
// Set colour
|
||||||
err := w.SetColour(config.GetColour())
|
color := config.GetColour()
|
||||||
if err != nil {
|
if color != "" {
|
||||||
return err
|
err := w.SetColour(color)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
w.log.Info("Initialised")
|
w.log.Info("Initialised")
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -21,13 +21,19 @@ import * as Store from './store';
|
|||||||
window.wails = window.wails || {};
|
window.wails = window.wails || {};
|
||||||
window.backend = {};
|
window.backend = {};
|
||||||
|
|
||||||
// On webkit2gtk >= 2.32, the external object is not passed
|
// On webkit2gtk >= 2.32, the external object is not passed to the window context.
|
||||||
// to the window context,
|
// However, IE will throw a strict mode error if window.external is assigned to
|
||||||
window.external = window.external || {
|
// so we need to make sure that line of code isn't reached in IE
|
||||||
invoke: function(x) {
|
|
||||||
window.webkit.messageHandlers.external.postMessage(x);
|
// Using !window.external transpiles to `window.external = window.external || ...`
|
||||||
}
|
// so we have to use an explicit if statement to prevent webpack from optimizing the code.
|
||||||
};
|
if (window.external == undefined) {
|
||||||
|
window.external = {
|
||||||
|
invoke: function(x) {
|
||||||
|
window.webkit.messageHandlers.external.postMessage(x);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
// Setup internal calls
|
// Setup internal calls
|
||||||
var internal = {
|
var internal = {
|
||||||
|
|||||||
Reference in New Issue
Block a user