Page.Meta = class { /** * Read meta data from page. */ static read() { this.table = ''; this.key = ''; this.homepage = 0; this.session_id = ''; this.version = ''; this.api_version = ''; this.page_id = ''; this.platform = ''; this.error_return_code = ''; this.page_name = ''; $('body > meta').each(function () { let $meta = $(this); if (!$meta.hasAttr('name')) { return; } Page.Meta[$meta.attr('name')] = $meta.attr('content'); $meta.remove(); }); this.page_names = this.page_name.split(','); } };