mirror of
https://github.com/dani/vroom.git
synced 2024-07-06 10:08:39 +02:00
![Daniel Berteaud](/assets/img/avatar_default.png)
Should force clients to get new files each time thy change without any maintenance, as it just reads the file mtime Should fix #22
14 lines
526 B
Plaintext
14 lines
526 B
Plaintext
<script type="text/javascript">
|
|
<%
|
|
my $url = $self->url_for('/');
|
|
$url .= ($url =~ m/\/$/) ? '' : '/';
|
|
%>
|
|
var rootUrl = '<%= $url %>';
|
|
</script>
|
|
<% foreach my $js (qw(simplewebrtc.bundle.js jquery-1.11.1.min.js bootstrap.min.js
|
|
notify-combined.min.js jquery.browser.min.js sprintf.js
|
|
FileSaver.js vroom.js)){
|
|
%>
|
|
<script type="text/javascript" src="/js/<%= $js %>?<%= $self->get_mtime("js/$js") %>"></script>
|
|
<% } %>
|