This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
Use new way of requiring Electron modules - #238
Merged
Merged
Conversation
17 of 18 tasks
Contributor
|
I think the best way we could possibly handle this is through a ipc =
try
require 'ipc-renderer'
catch
require 'ipc'Or, on a single line, if that looks better: ipc = try require('ipc-renderer') catch then require('ipc') |
There was a problem hiding this comment.
I think we should drop support for previous versions because the only place where this will be included will be bumping the version
Contributor
Author
There was a problem hiding this comment.
It was to make specs pass. I'll remove it once a shipped version of Atom contains this.
Hopefully this works.
winstliu
pushed a commit
that referenced
this pull request
Dec 22, 2015
Use new way of requiring Electron modules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs atom/atom#9627
I'm not sure how to make this backwards-compatible. I assume all it takes is a simple if block (if x require('ipc-renderer') else require('ipc')) but I'm not sure what thexwould be.