mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix no-drag css (#331)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
724cf0c687
commit
03aab714d8
@ -8,6 +8,8 @@
|
||||
border: 0;
|
||||
outline: none;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-user-drag: none;
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
::selection {
|
||||
|
||||
@ -93,10 +93,6 @@ export default {
|
||||
console.log("lens loaded")
|
||||
this.lens.loaded = true;
|
||||
this.$store.commit("updateLens", this.lens);
|
||||
this.lens.webview.getWebContents().executeJavaScript(
|
||||
// disable dragging of ui links
|
||||
'document.styleSheets[0].insertRule("*, *::after, *::before { -webkit-user-drag: none; -webkit-app-region: no-drag; }", 1);'
|
||||
);
|
||||
},
|
||||
// Called only when online state changes
|
||||
toggleLens: function() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user