Skip to content

Commit

Permalink
Fix post-installation sound check for a case with disabled mod_rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
faf committed May 24, 2023
1 parent 973632b commit 874e896
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/mibew/js/source/soundcheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@

(function(Mibew, $) {
$(document).ready(function() {
var basePath = window.location.href.replace(/install\.php\/install\/done$/, 'install/done');
$('#check-new-visitor').click(function(){
Mibew.Utils.playSound('../sounds/new_user');
Mibew.Utils.playSound(basePath + '/../../sounds/new_user');
});

$('#check-new-message').click(function() {
Mibew.Utils.playSound('../sounds/new_message');
Mibew.Utils.playSound(basePath + '/../../sounds/new_message');
});

$('#check-invitation').click(function() {
Mibew.Utils.playSound('../sounds/invite');
Mibew.Utils.playSound(basePath + '/../../sounds/invite');
});
});
})(Mibew, jQuery);

0 comments on commit 874e896

Please sign in to comment.