Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
agb@immerda.ch
ipick
Commits
8f02a28f
Commit
8f02a28f
authored
Apr 01, 2020
by
o@immerda.ch
Browse files
fix case where ipick is included in <head>
parent
69e74bc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
ipick.js
View file @
8f02a28f
...
...
@@ -3,6 +3,15 @@ var ipickJsIsIncluded = false;
// Prevent ipick being loaded twice
if
(
ipickJsIsIncluded
)
return
;
// This hack allows us to include the ipick even in the header
// of a page, since some templates might restrict us, on where
// we can easily include it.
if
(
!
document
.
body
)
{
var
thisFunction
=
arguments
.
callee
;
setTimeout
(
function
(){
thisFunction
(
document
,
logo
)},
200
);
return
;
}
ipickJsIsIncluded
=
true
;
var
style
=
`
...
...
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