Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanbekar committed Dec 6, 2023
1 parent d4583fa commit 2309bf8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/application/src/plugins/rise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,10 @@ namespace Rise {
// https://github.com/jupyterlab-contrib/rise/issues/509
// Attempt to load rise.css
const curdir = PathExt.dirname(panel.sessionContext.path);
const riseCssUrl = new URL(PathExt.join("files", curdir, "rise.css"), PageConfig.getBaseUrl());
const riseCssUrl = new URL(
PathExt.join('files', curdir, 'rise.css'),
PageConfig.getBaseUrl()
);
document.head.insertAdjacentHTML(
'beforeend',
`<link rel="stylesheet" href="${riseCssUrl.href}" id="rise-custom-css" />`
Expand All @@ -910,7 +913,10 @@ namespace Rise {
const dot_index = name.lastIndexOf('.');
const stem = dot_index === -1 ? name : name.substr(0, dot_index);
// associated css
const nameCssUrl = new URL(PathExt.join("files", curdir, `${stem}.css`), PageConfig.getBaseUrl());
const nameCssUrl = new URL(
PathExt.join('files', curdir, `${stem}.css`),
PageConfig.getBaseUrl()
);
// Attempt to load css with the same path as notebook
document.head.insertAdjacentHTML(
'beforeend',
Expand Down

0 comments on commit 2309bf8

Please sign in to comment.