From eca97f6f5783c2774f1363737be78ea1a6f28d6b Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 6 Nov 2020 21:32:03 +0000 Subject: [PATCH] Linting. --- packages/client/src/render/getAppId.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/client/src/render/getAppId.js b/packages/client/src/render/getAppId.js index 8bcc5fbfca..992df319a5 100644 --- a/packages/client/src/render/getAppId.js +++ b/packages/client/src/render/getAppId.js @@ -2,8 +2,10 @@ const COOKIE_SEPARATOR = ";" const APP_PREFIX = "app_" const KEY_VALUE_SPLIT = "=" -export const getAppId = (allCookies) => { - const cookie = allCookies.split(COOKIE_SEPARATOR).find(cookie => cookie.trim().startsWith("budibase:currentapp")) +export const getAppId = allCookies => { + const cookie = allCookies + .split(COOKIE_SEPARATOR) + .find(cookie => cookie.trim().startsWith("budibase:currentapp")) let appId = location.pathname.split("/")[1] appId = appId && appId.startsWith(APP_PREFIX) ? appId : undefined if (!appId && cookie && cookie.split(KEY_VALUE_SPLIT).length === 2) {