decord/source/7358_supportsHistory.js

27 lines
762 B
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 7358
2026-07-24 07:16:23 +00:00
// Function ID: 59349
2026-07-23 10:11:24 +00:00
// Name: supportsHistory
// Dependencies: [7237]
// Module 7358 (supportsHistory)
const require = arg1;
const dependencyMap = arg6;
arg5.supportsHistory = function supportsHistory() {
const chrome = require(7237) /* getGlobalSingleton */.GLOBAL_OBJ.chrome;
let runtime = chrome;
if (chrome) {
runtime = chrome.app;
}
if (runtime) {
runtime = chrome.app.runtime;
}
let pushState = "history" in require(7237) /* getGlobalSingleton */.GLOBAL_OBJ;
if (pushState) {
pushState = require(7237) /* getGlobalSingleton */.GLOBAL_OBJ.history.pushState;
}
if (pushState) {
pushState = require(7237) /* getGlobalSingleton */.GLOBAL_OBJ.history.replaceState;
}
return !runtime && pushState;
};