mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 15:25:47 +01:00
Remove unnecessary browserService and mockDom
This commit is contained in:
@@ -68,22 +68,6 @@ export const canUseTranslate3d = !isIE9 && !isFirefox;
|
||||
|
||||
export const enableEmptySelectionClipboard = isWebKit;
|
||||
|
||||
let _disablePushState = false;
|
||||
|
||||
/**
|
||||
* Returns if the browser supports the history.pushState function or not.
|
||||
*/
|
||||
export function canPushState() {
|
||||
return (!_disablePushState && globals.history && globals.history.pushState);
|
||||
}
|
||||
|
||||
/**
|
||||
* Helpful when we detect that pushing state does not work for some reason (e.g. FF prevents pushState for security reasons in some cases)
|
||||
*/
|
||||
export function disablePushState() {
|
||||
_disablePushState = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if the browser supports CSS 3 animations.
|
||||
*/
|
||||
@@ -116,10 +100,6 @@ export function hasCSSAnimationSupport() {
|
||||
return this._hasCSSAnimationSupport;
|
||||
}
|
||||
|
||||
export function isInWebWorker(): boolean {
|
||||
return !globals.document && typeof ((<any>globals).importScripts) !== 'undefined';
|
||||
}
|
||||
|
||||
export function supportsExecCommand(command: string): boolean {
|
||||
return (
|
||||
(isIE11orEarlier || Platform.isNative)
|
||||
|
||||
Reference in New Issue
Block a user