File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 99 UnmuteOverlay ,
1010 URLLoadOptions ,
1111 WindowMode ,
12- CacheBehavior ,
12+ BFCacheBehavior ,
1313} from "../../public/config" ;
1414import { MovieMetadata , ReadyState } from "../../public/player" ;
1515import { ruffleShadowTemplate } from "../ui/shadow-template" ;
@@ -2138,11 +2138,11 @@ export class InnerPlayer {
21382138 // Do not display the message if another one is already shown or website opted out.
21392139 if (
21402140 this . container . querySelector ( "#message-overlay" ) !== null ||
2141- this . loadedConfig ?. bfcacheBehavior === CacheBehavior . Restore
2141+ this . loadedConfig ?. bfcacheBehavior === BFCacheBehavior . Restore
21422142 ) {
21432143 return ;
21442144 }
2145- if ( this . loadedConfig ?. bfcacheBehavior === CacheBehavior . Reload ) {
2145+ if ( this . loadedConfig ?. bfcacheBehavior === BFCacheBehavior . Reload ) {
21462146 this . reload ( ) ;
21472147 return ;
21482148 }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
1010 UnmuteOverlay ,
1111 WindowMode ,
1212 ScrollingBehavior ,
13- CacheBehavior ,
13+ BFCacheBehavior ,
1414} from "./load-options" ;
1515
1616export const DEFAULT_CONFIG : Required < BaseLoadOptions > = {
@@ -23,7 +23,7 @@ export const DEFAULT_CONFIG: Required<BaseLoadOptions> = {
2323 upgradeToHttps : true ,
2424 compatibilityRules : true ,
2525 favorFlash : true ,
26- bfcacheBehavior : CacheBehavior . Inform ,
26+ bfcacheBehavior : BFCacheBehavior . Inform ,
2727 warnOnUnsupportedContent : true ,
2828 logLevel : LogLevel . Error ,
2929 showSwfDownload : false ,
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ export enum GamepadButton {
364364/**
365365 * The behavior when the bfcache takes effect
366366 */
367- export enum CacheBehavior {
367+ export enum BFCacheBehavior {
368368 /**
369369 * Inform the user that the content was restore from the bfcache.
370370 */
@@ -473,9 +473,9 @@ export interface BaseLoadOptions {
473473 /**
474474 * Behavior when the bfcache takes effect
475475 *
476- * @default CacheBehavior .Inform
476+ * @default BFCacheBehavior .Inform
477477 */
478- bfcacheBehavior ?: CacheBehavior ;
478+ bfcacheBehavior ?: BFCacheBehavior ;
479479
480480 /**
481481 * This is no longer used and does not affect anything.
You can’t perform that action at this time.
0 commit comments