Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from ehamiter/master
Browse files Browse the repository at this point in the history
Got rid of the webbrowser dependency and use sublime internals for open an url Fixed #3
  • Loading branch information
Azd325 committed May 5, 2013
2 parents 1a959b7 + cb013af commit 0b5fc7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions useIt.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import sublime
import sublime_plugin
import webbrowser
import re


Expand All @@ -26,4 +25,5 @@ def run(self, edit):
re_search = CLEAN_CSS_PATTERN.search(search)
if re_search:
search = re_search.group()
webbrowser.open_new_tab(BASE_URL + search)
self.view.window().run_command('open_url', \
{"url": BASE_URL + search})

0 comments on commit 0b5fc7c

Please sign in to comment.