mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
fix(mentions): resolve TypeScript compilation errors
- Remove duplicate MentionItem interface definition from mention-config.ts - Fix TemplateRef type to match Angular's expected template context structure - Update type casting for TagCopy and ProjectCopy arrays in add-task-bar component - Remove unused CustomEvent interface from mention directive - Fix syntax error in electron main-window.ts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> # Conflicts: # electron/main-window.ts
This commit is contained in:
parent
3cbe3eef68
commit
7417cd9b65
5 changed files with 90 additions and 36 deletions
|
|
@ -19,9 +19,9 @@ import { error, log } from 'electron-log/main';
|
|||
import { GlobalConfigState } from '../src/app/features/config/global-config.model';
|
||||
import { IS_MAC } from './common.const';
|
||||
import {
|
||||
showOverlayWindow,
|
||||
hideOverlayWindow,
|
||||
destroyOverlayWindow,
|
||||
hideOverlayWindow,
|
||||
showOverlayWindow,
|
||||
} from './overlay-indicator/overlay-indicator';
|
||||
|
||||
let mainWin: BrowserWindow;
|
||||
|
|
@ -119,7 +119,9 @@ export const createWindow = ({
|
|||
|
||||
// NOTE this is needed for GitHub api requests to work :(
|
||||
// office365 needs a User-Agent as well (#4677)
|
||||
if (new URL(details.url).hostname in ['github.com', 'office365.com', 'outlook.live.com']) {
|
||||
if (
|
||||
new URL(details.url).hostname in ['github.com', 'office365.com', 'outlook.live.com']
|
||||
) {
|
||||
removeKeyInAnyCase(requestHeaders, 'User-Agent');
|
||||
}
|
||||
callback({ requestHeaders });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue