-
Notifications
You must be signed in to change notification settings - Fork 1
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
WebTorrent extension progress #7
Conversation
- set 'key' field in manifest, for deterministic extension ID - Use require('webtorrent') and require('create-torrent') - Add webpack loader for json and 'fs' empty shim - Replace require('magnet-uri') with require('parse-torrent') which is super-set - Fix TODOs - Move state mutation out of render() - Implement "Save .torrent File" button - Remove "Copy Magnet Link" button (already possible via location bar) - var -> let, const - Make UI look like part of Brave
Ohh, this looks neat :) |
} | ||
window.state = state /* for easier debugging */ | ||
|
||
// TODO: REMOVE THIS HACK ONCE THIS IS ADDRESSED: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We no longer need this now that WebTorrent it in a node process, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think you're right.
function handleError (error) { | ||
state.errorMessage = error.message | ||
} | ||
start () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks clean!
} | ||
|
||
// TODO(feross): Test how this behaves with different file types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was experimenting with this last night, and ended up removing resizeToContent
entirely.
Sizing an <iframe>
to its content is pretty janky in the best situations, and doesn't work at all in cases like this where the outer URL and inner URL have different schemes. (chrome-extension
vs http
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
After experimenting with it, I think that Here's an alternative UX
Security
|
cherry-picked! |
I like the alternate UX. I don't think we want to actually redirect Proposal: we keep the |
That should be a pretty easy PR to webtorrent. Sounds good to me. But I thought we're ignoring the webpage in a torrent use-case for now? |
super-set