Skip to content

Commit

Permalink
Widget: use const object for cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
gusthoff committed Nov 2, 2024
1 parent d553b15 commit 211c053
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/src/ts/widget.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cookies from 'typescript-cookies';
import {Cookies} from 'typescript-cookies'

import {Area, OutputArea, LabContainer} from './areas.ts';
import {Editor, EditorTheme} from './editor.ts';
Expand All @@ -18,6 +18,12 @@ interface EditorView {

type EditorMap = Map<string, EditorView>;

const cookies = new Cookies({
path: '/',
secure: true,
samesite: 'none',
})

/**
* Defines the widget behavior
* @class Widget
Expand Down

0 comments on commit 211c053

Please sign in to comment.