mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
Show branch in title
This commit is contained in:
parent
30777230ea
commit
322cfc0c1d
1 changed files with 14 additions and 1 deletions
|
|
@ -1,9 +1,22 @@
|
|||
<html>
|
||||
<head>
|
||||
|
||||
<title>
|
||||
If you see this, JavaScript threw an error
|
||||
</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>
|
||||
If you see this, JavaScript threw an error
|
||||
</h1>
|
||||
|
||||
</body>
|
||||
<script src="./transloadit-js-client.js"></script>
|
||||
<script>
|
||||
var branch = location.pathname.split('/')[2];
|
||||
var elTitle = document.querySelector('title');
|
||||
var elH1 = document.querySelector('h1');
|
||||
var title = 'You are reviewing the latest push of branch: ' + branch;
|
||||
elTitle.innerHTML = title;
|
||||
elH1.innerHTML = title;
|
||||
</script>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue