@cloudgeek/glimpse 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/glimpse.swift +5 -0
- package/package.json +1 -1
package/glimpse.swift
CHANGED
|
@@ -107,6 +107,11 @@ final class AppDelegate: NSObject, NSApplicationDelegate, WKNavigationDelegate,
|
|
|
107
107
|
private func setupWebView() {
|
|
108
108
|
let controller = WKUserContentController()
|
|
109
109
|
let bridgeJS = """
|
|
110
|
+
(function() {
|
|
111
|
+
var s = document.createElement('style');
|
|
112
|
+
s.textContent = 'video::-webkit-media-controls { display: none !important; }';
|
|
113
|
+
(document.head || document.documentElement).appendChild(s);
|
|
114
|
+
})();
|
|
110
115
|
window.glimpse = {
|
|
111
116
|
send: function(data) {
|
|
112
117
|
window.webkit.messageHandlers.glimpse.postMessage(JSON.stringify(data));
|