Sha256: cb4f35e05c9d7fab71914c17fb52b7654a3ca1e1bee97883ce4091605f23bde0
Contents?: true
Size: 729 Bytes
Versions: 18
Compression:
Stored size: 729 Bytes
Contents
import './index.sass'; import Cookies from 'js-cookie'; import template from './errors.handlebars'; const COOKIE_ERROR = { title: 'В вашем броузере отключены Cookies', link: 'https://yandex.ru/support/common/browsers-settings/browsers-cookies.xml', anchor: 'Включите их', message: 'чтобы зайти на сайт' } class Errors { show(error) { $('body').prepend(template(error)); } checkCookie() { $(".no-js-error").remove() $(".no-js-script").remove() if (!Cookies.get('cookies_on')) { this.show(COOKIE_ERROR); console.error('cookies not supported'); } else { //console.info('cookies supported'); } } } export default Errors;
Version data entries
18 entries across 18 versions & 1 rubygems