requested change

Co-authored-by: Himanshu <himanshuwarekar@yahoo.com>
This commit is contained in:
Abhishek Balam 2020-05-19 11:05:07 +05:30 committed by GitHub
parent 3a2eb64a29
commit 2fe23e29f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ function generate_google_search_preview(frm) {
let seo_title = (frm.doc.title).slice(0, 60);
let seo_description = (frm.doc.meta_description || frm.doc.blog_intro || "").slice(0, 160);
let date = frm.doc.published_on ? new frappe.datetime.datetime(frm.doc.published_on).moment.format('ll') + ' - ' : '';
let route_array = (frm.doc.route) ? frm.doc.route.split('/') : [];
let route_array = frm.doc.route ? frm.doc.route.split('/') : [];
route_array.pop();
google_preview.html(`