parent
25fcf3a6a4
commit
b2f67c73e4
3 changed files with 8 additions and 22 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import rpc from '../rpc';
|
||||
import getURL from '../utils/url-command';
|
||||
import isUrl from '../utils/url-command';
|
||||
import {keys} from '../utils/object';
|
||||
import findBySession from '../utils/term-groups';
|
||||
import {
|
||||
|
|
@ -56,7 +56,7 @@ export function addSessionData(uid, data) {
|
|||
const {shell} = getState().sessions.sessions[uid];
|
||||
|
||||
const enterKey = Boolean(data.match(/\n/));
|
||||
const url = enterKey ? getURL(shell, data) : null;
|
||||
const url = enterKey ? isUrl(shell, data) : null;
|
||||
|
||||
if (url) {
|
||||
dispatch({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue