Skip to content

Commit

Permalink
Remove the version parameters on static files
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauriC committed Jan 17, 2024
1 parent 0b8ffa2 commit 00a6e3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tarteaucitron.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ var tarteaucitron = {
var cdn = tarteaucitron.cdn,
language = tarteaucitron.getLanguage(),
useMinifiedJS = ((cdn.indexOf('cdn.jsdelivr.net') >= 0) || (tarteaucitronUseMin !== '')),
pathToLang = cdn + 'lang/tarteaucitron.' + language + (useMinifiedJS ? '.min' : '') + '.js?v=' + tarteaucitron.version,
pathToServices = cdn + 'tarteaucitron.services' + (useMinifiedJS ? '.min' : '') + '.js?v=' + tarteaucitron.version,
pathToLang = cdn + 'lang/tarteaucitron.' + language + (useMinifiedJS ? '.min' : '') + '.js',
pathToServices = cdn + 'tarteaucitron.services' + (useMinifiedJS ? '.min' : '') + '.js',
linkElement = document.createElement('link'),
defaults = {
"adblocker": false,
Expand Down Expand Up @@ -261,7 +261,7 @@ var tarteaucitron = {
if ( !tarteaucitron.parameters.useExternalCss ) {
linkElement.rel = 'stylesheet';
linkElement.type = 'text/css';
linkElement.href = cdn + 'css/tarteaucitron' + (useMinifiedJS ? '.min' : '') + '.css?v=' + tarteaucitron.version;
linkElement.href = cdn + 'css/tarteaucitron' + (useMinifiedJS ? '.min' : '') + '.css';
document.getElementsByTagName('head')[0].appendChild(linkElement);
}
// Step 2: load language and services
Expand Down Expand Up @@ -530,7 +530,7 @@ var tarteaucitron = {
html += '</div>';
}

tarteaucitron.addInternalScript(tarteaucitron.cdn + 'advertising' + (useMinifiedJS ? '.min' : '') + '.js?v=' + tarteaucitron.version, '', function () {
tarteaucitron.addInternalScript(tarteaucitron.cdn + 'advertising' + (useMinifiedJS ? '.min' : '') + '.js', '', function () {
if (tarteaucitronNoAdBlocker === true || tarteaucitron.parameters.adblocker === false) {

// create a wrapper container at the same level than tarteaucitron so we can add an aria-hidden when tarteaucitron is opened
Expand Down
2 changes: 1 addition & 1 deletion tarteaucitron.min.js

Large diffs are not rendered by default.

0 comments on commit 00a6e3c

Please sign in to comment.