Sha256: 2ad5a1541b69cf93e683c4accd2f6780f4f4fd7cd8db7396342829404f522631

Contents?: true

Size: 278 Bytes

Versions: 12

Compression:

Stored size: 278 Bytes

Contents

import { helper } from "@ember/component/helper";
import Preload from "client-app/lib/preload";

export function logsterUrl(arr) {
  let url = arr[0];
  if (url[0] !== "/") {
    url = `/${url}`;
  }
  return Preload.get("rootPath") + url;
}

export default helper(logsterUrl);

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
logster-2.6.1 client-app/app/helpers/logster-url.js
logster-2.6.0 client-app/app/helpers/logster-url.js
logster-2.5.1 client-app/app/helpers/logster-url.js
logster-2.5.0 client-app/app/helpers/logster-url.js
logster-2.4.2 client-app/app/helpers/logster-url.js
logster-2.4.1 client-app/app/helpers/logster-url.js
logster-2.4.0 client-app/app/helpers/logster-url.js
logster-2.3.3 client-app/app/helpers/logster-url.js
logster-2.3.2 client-app/app/helpers/logster-url.js
logster-2.3.1 client-app/app/helpers/logster-url.js
logster-2.3.0 client-app/app/helpers/logster-url.js
logster-2.2.0 client-app/app/helpers/logster-url.js