Skip to content

Commit

Permalink
Do not make the inspector conditional on VS Code preview
Browse files Browse the repository at this point in the history
  • Loading branch information
laffra committed Dec 1, 2024
1 parent cb9b334 commit d41dce0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ltk/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,8 @@ def __init__(self):
self.right = create("<div>").addClass("ltk-highlight-right").appendTo("body")
self.details = create("<div>").addClass("ltk-highlight-details").appendTo("body")

def enabled(self):
""" Returns true if the highlight is enabled """
return hasattr(window, "createConsoleOverride")

def show(self, widget):
""" Show the highlight """
if not self.enabled():
return
top = widget.offset().top
left = widget.offset().left
width = widget.outerWidth()
Expand Down

0 comments on commit d41dce0

Please sign in to comment.