Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
bae64b05
Commit
bae64b05
authored
Mar 24, 2014
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Catch trailing / before query building streamer
Closes #1086
parent
53d686d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
controllers.coffee
h/js/controllers.coffee
+1
-1
displayer.coffee
h/js/displayer.coffee
+2
-4
streamsearch.coffee
h/js/streamsearch.coffee
+1
-1
No files found.
h/js/controllers.coffee
View file @
bae64b05
...
...
@@ -468,7 +468,7 @@ class App
.
addClause
(
'uri'
,
'one_of'
,
Object
.
keys
(
annotator
.
plugins
.
Store
.
entities
))
.
getFilter
()
streamerURI
=
baseURI
.
replace
/\/\w+(\
??[^\/]*)\/
$/
,
'/__streamer__'
streamerURI
=
baseURI
.
replace
/\/\w+(\
/?\??[^\/]*)\/?
$/
,
'/__streamer__'
$scope
.
updater
=
new
SockJS
streamerURI
$scope
.
updater
.
onopen
=
=>
...
...
h/js/displayer.coffee
View file @
bae64b05
...
...
@@ -14,9 +14,7 @@ class Displayer
this
.
$inject
=
[
'$scope'
,
'$element'
,
'$timeout'
,
'baseURI'
,
'streamfilter'
]
constructor
:
(
$scope
,
$element
,
$timeout
,
baseURI
,
streamfilter
)
->
# Set streamer url
init_path
=
document
.
init_path
@
path
=
baseURI
[..
-
(
init_path
.
toString
().
length
)]
+
'__streamer__'
delete
document
.
init_path
streamerURI
=
baseURI
.
replace
/\/\w+(\/?\??[^\/]*)\/?$/
,
'/__streamer__'
# Generate client ID
buffer
=
new
Array
(
16
)
...
...
@@ -51,7 +49,7 @@ class Displayer
to_change
.
reply_count
=
reply_count
$scope
.
open
=
=>
$scope
.
sock
=
new
SockJS
@
path
$scope
.
sock
=
new
SockJS
streamerURI
$scope
.
sock
.
onopen
=
=>
sockmsg
=
...
...
h/js/streamsearch.coffee
View file @
bae64b05
...
...
@@ -221,7 +221,7 @@ class StreamSearch
if
$scope
.
sock
?
then
$scope
.
sock
.
close
()
$scope
.
annotations
=
new
Array
()
streamerURI
=
baseURI
.
replace
/\/\w+(\
??[^\/]*)\/
$/
,
'/__streamer__'
streamerURI
=
baseURI
.
replace
/\/\w+(\
/?\??[^\/]*)\/?
$/
,
'/__streamer__'
$scope
.
sock
=
new
SockJS
streamerURI
$scope
.
sock
.
onopen
=
=>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment