Skip to content

Commit

Permalink
Highlighter/move to appdata (#5264)
Browse files Browse the repository at this point in the history
* download highlighter into AppData folder

* fixed path

---------

Co-authored-by: ggolda <[email protected]>
  • Loading branch information
gettinToasty and ggolda authored Dec 14, 2024
1 parent 3ffac32 commit dce1383
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/services/highlighter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ import { AiHighlighterUpdater } from './ai-highlighter/updater';
import { IDownloadProgress } from 'util/requests';
import { IncrementalRolloutService } from 'app-services';
import { EAvailableFeatures } from 'services/incremental-rollout';
import { getSharedResource } from 'util/get-shared-resource';
export type TStreamInfo =
| {
orderPosition: number;
Expand Down Expand Up @@ -2309,7 +2308,7 @@ export class HighlighterService extends PersistentStatefulService<IHighlighterSt
return;
}

const basepath = getSharedResource('ai-highlighter');
const basepath = path.join(remote.app.getPath('userData'), 'ai-highlighter');
const milestonesPath = path.join(basepath, 'milestones', 'milestones.json');

const milestonesData = JSON.stringify(this.streamMilestones.milestones);
Expand Down

0 comments on commit dce1383

Please sign in to comment.