summaryrefslogtreecommitdiff
path: root/iridescence/src/views
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-12-28 08:43:44 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-12-28 08:43:44 -0500
commitbb1edd35721d34ce394ab9e51c4095015f26b185 (patch)
tree2287c44f6ccc660abcd508df239909bbb0ecc9c2 /iridescence/src/views
parent9c02faa06170d7d3140bf252d1dca4630e4b0172 (diff)
downloadtheglassyladies-dev.tar.xz
theglassyladies-dev.zip
fixed images that were rotated with exif tags not displaying rotateddev
Diffstat (limited to 'iridescence/src/views')
-rw-r--r--iridescence/src/views/Admin.vue18
1 files changed, 11 insertions, 7 deletions
diff --git a/iridescence/src/views/Admin.vue b/iridescence/src/views/Admin.vue
index f1cf227..6bb161a 100644
--- a/iridescence/src/views/Admin.vue
+++ b/iridescence/src/views/Admin.vue
@@ -29,13 +29,17 @@ export default {
ProductSearch
},
beforeRouteEnter: (to, from, next) => {
- fetch(process.env.VUE_APP_LOGIN_URL).then(res => {
- if (res.status == 401) {
- next(false);
- } else {
- next();
- }
- });
+ if (!process.env.VUE_APP_LOGIN_URL) {
+ next();
+ } else {
+ fetch(process.env.VUE_APP_LOGIN_URL).then(res => {
+ if (res.status == 401) {
+ next(false);
+ } else {
+ next();
+ }
+ });
+ }
}
};
</script>