fix: add missing index arg in navigationHistory.canGoToOffset (#45006)
		
	fix: add missing arg Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: alice <alice@makenotion.com>
This commit is contained in:
		
					parent
					
						
							
								39e85d9a50
							
						
					
				
			
			
				commit
				
					
						237e486589
					
				
			
		
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -514,9 +514,9 @@ WebContents.prototype.canGoForward = function () {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const canGoToOffsetDeprecated = deprecate.warnOnce('webContents.canGoToOffset', 'webContents.navigationHistory.canGoToOffset');
 | 
					const canGoToOffsetDeprecated = deprecate.warnOnce('webContents.canGoToOffset', 'webContents.navigationHistory.canGoToOffset');
 | 
				
			||||||
WebContents.prototype.canGoToOffset = function () {
 | 
					WebContents.prototype.canGoToOffset = function (index: number) {
 | 
				
			||||||
  canGoToOffsetDeprecated();
 | 
					  canGoToOffsetDeprecated();
 | 
				
			||||||
  return this._canGoToOffset();
 | 
					  return this._canGoToOffset(index);
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const clearHistoryDeprecated = deprecate.warnOnce('webContents.clearHistory', 'webContents.navigationHistory.clear');
 | 
					const clearHistoryDeprecated = deprecate.warnOnce('webContents.clearHistory', 'webContents.navigationHistory.clear');
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								typings/internal-electron.d.ts
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								typings/internal-electron.d.ts
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -93,7 +93,7 @@ declare namespace Electron {
 | 
				
			||||||
    _historyLength(): number;
 | 
					    _historyLength(): number;
 | 
				
			||||||
    _canGoBack(): boolean;
 | 
					    _canGoBack(): boolean;
 | 
				
			||||||
    _canGoForward(): boolean;
 | 
					    _canGoForward(): boolean;
 | 
				
			||||||
    _canGoToOffset(): boolean;
 | 
					    _canGoToOffset(index: number): boolean;
 | 
				
			||||||
    _goBack(): void;
 | 
					    _goBack(): void;
 | 
				
			||||||
    _goForward(): void;
 | 
					    _goForward(): void;
 | 
				
			||||||
    _goToOffset(index: number): void;
 | 
					    _goToOffset(index: number): void;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue