[fixes] invalid left-hand side expression in postfix operation fixes (#3131)

This commit is contained in:
Makarand Bauskar 2017-04-21 14:46:20 +05:30 committed by Rushabh Mehta
parent a346d3385a
commit 4e428d8370

View file

@ -204,7 +204,7 @@ frappe.socket = {
frappe.socket.file_watcher.on('reload_css', function(filename) {
let abs_file_path = "assets/" + filename;
const link = $(`link[href*="${abs_file_path}"]`);
abs_file_path = abs_file_path.split('?')[0] + '?v=' + +moment();
abs_file_path = abs_file_path.split('?')[0] + '?v='+ moment();
link.attr('href', abs_file_path);
frappe.show_alert({
indicator: 'orange',