Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workaround for El Capitan #195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion ponyd/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ class DeviceHandler(tornado.websocket.WebSocketHandler):
page = None
devTools = None

def check_origin(self, origin):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just saw. Sorry, for a while I won't have the chance to check this.

return True

def open(self):
logger.info("Device Connected")
self.deviceID = None
Expand Down Expand Up @@ -169,6 +172,9 @@ class DevToolsHandler(tornado.websocket.WebSocketHandler):

device = None

def check_origin(self, origin):
return True

def open(self, page):
self.page = int(page)
self.app_state.devToolsConnected(self)
Expand All @@ -187,6 +193,9 @@ class LobbyHandler(tornado.websocket.WebSocketHandler):
app_state = global_app_state
message_id = 0

def check_origin(self, origin):
return True

def open(self):
logger.info('Lobby Connected')
self.app_state.addLobby(self)
Expand All @@ -209,13 +218,14 @@ class Gateway(PonydCommand):
"""Runs PonyDebugger's gateway"""
__subcommand__ = 'serve'

print "Running command-line. ok."

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please remove this log statement?

static_path = os.path.abspath(os.path.join(os.path.dirname(__file__), 'web'))

verbose = Arg('-v', '--verbose',
help='verbose logging',
action='store_true')

satic_path = Arg('-s', '--static-path',
static_path = Arg('-s', '--static-path',
help='path for static files [default: %(default)s]',
default=static_path)

Expand Down