Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
meskio
bitmask-dev
Commits
c2c603d5
Unverified
Commit
c2c603d5
authored
Sep 6, 2016
by
meskio
Committed by
Kali Kaneko
Sep 6, 2016
Browse files
Options
Downloads
Patches
Plain Diff
[feature] set a default localhost:7070 if bitmask.js is loaded from file
parent
b5e628de
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
www/app/lib/bitmask.js
+6
-1
6 additions, 1 deletion
www/app/lib/bitmask.js
with
6 additions
and
1 deletion
www/app/lib/bitmask.js
+
6
−
1
View file @
c2c603d5
...
...
@@ -33,8 +33,13 @@ import "babel-polyfill";
var
bitmask
=
function
(){
var
event_handlers
=
{};
var
api_url
=
'
/API/
'
;
if
(
window
.
location
.
protocol
===
"
file:
"
)
{
api_url
=
'
http://localhost:7070/API/
'
;
}
function
call
(
command
)
{
var
url
=
'
/API/
'
+
command
.
slice
(
0
,
2
).
join
(
'
/
'
);
var
url
=
api_url
+
command
.
slice
(
0
,
2
).
join
(
'
/
'
);
var
data
=
JSON
.
stringify
(
command
.
slice
(
2
));
return
new
Promise
(
function
(
resolve
,
reject
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment