Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
stw
stwkit
Commits
4d6581af
Commit
4d6581af
authored
Aug 31, 2017
by
Tomas Pettersson
🏸
Browse files
added update
parent
bef29418
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stwkit.js
View file @
4d6581af
...
...
@@ -28,6 +28,13 @@ var STWkit = {
}
return
-
1
;
},
updateUrl
:
function
(
params
)
{
var
search
=
STWkit
.
getSearchUrl
(
param
);
if
(
history
.
pushState
)
{
var
newurl
=
window
.
location
.
protocol
+
"
//
"
+
window
.
location
.
host
+
window
.
location
.
pathname
+
search
;
window
.
history
.
pushState
({
path
:
newurl
},
''
,
newurl
);
}
},
getSearchUrl
:
function
(
params
)
{
var
search
=
""
;
if
(
params
.
length
>
0
)
search
+=
"
?
"
;
...
...
Write
Preview
Supports
Markdown
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