Fixed API/globalvar bug for ajax data retrieval
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index f465802..d05257e 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -17,9 +17,11 @@
push(@{$self->plugins->namespaces}, __PACKAGE__ . '::Plugin');
# Set secrets for signed cookies
- $self->secrets([
- b($self->home . '/kalamar.secret')->slurp->split("\n")
- ]);
+ if (-e (my $secret = $self->home . '/kalamar.secret')) {
+ $self->secrets([
+ b($secret)->slurp->split("\n")
+ ]);
+ };
# Load plugins
foreach (