From a34b82eadb16a775baa48bb032e9c632213b25a0 Mon Sep 17 00:00:00 2001 From: swag Date: Sat, 17 Jun 2023 18:29:21 -0400 Subject: [PATCH] Remove moar stuff --- assets/js/captcha.js | 13 ------------- cpanfile | 1 - lib/PostText.pm | 2 +- 3 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 assets/js/captcha.js diff --git a/assets/js/captcha.js b/assets/js/captcha.js deleted file mode 100644 index eb3fddf..0000000 --- a/assets/js/captcha.js +++ /dev/null @@ -1,13 +0,0 @@ -/* -'use strict'; - -document.getElementById('captcha').value = -*/ - -'use strict'; - -let captchaValue = - document - .querySelector('label[for="captcha"]') - .textContent - .match(/'(flag|bump)'/)[1]; diff --git a/cpanfile b/cpanfile index baad406..5180947 100644 --- a/cpanfile +++ b/cpanfile @@ -9,4 +9,3 @@ requires 'CSS::Minifier::XS'; requires 'Text::Markdown'; requires 'HTML::Restrict'; requires 'IO::Socket::SSL'; -requires 'JavaScript::Minifier::XS'; diff --git a/lib/PostText.pm b/lib/PostText.pm index 19254fd..0e17054 100644 --- a/lib/PostText.pm +++ b/lib/PostText.pm @@ -16,7 +16,7 @@ use PostText::Model::Moderator; sub startup($self) { $self->plugin('Config'); $self->plugin('TagHelpers::Pagination'); - $self->plugin(AssetPack => {pipes => [qw{Css JavaScript Combine}]}); + $self->plugin(AssetPack => {pipes => [qw{Css Combine}]}); # Helpers $self->helper(pg => sub ($c) {