2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 6433
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 57802
|
2026-07-23 10:11:24 +00:00
|
|
|
// Name: supportsHistory
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [6312]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 6433 (supportsHistory)
|
2026-07-23 10:11:24 +00:00
|
|
|
const require = arg1;
|
|
|
|
|
const dependencyMap = arg6;
|
|
|
|
|
arg5.supportsHistory = function supportsHistory() {
|
2026-07-25 08:10:48 +00:00
|
|
|
const chrome = require(6312) /* getGlobalSingleton */.GLOBAL_OBJ.chrome;
|
2026-07-23 10:11:24 +00:00
|
|
|
let runtime = chrome;
|
|
|
|
|
if (chrome) {
|
|
|
|
|
runtime = chrome.app;
|
|
|
|
|
}
|
|
|
|
|
if (runtime) {
|
|
|
|
|
runtime = chrome.app.runtime;
|
|
|
|
|
}
|
2026-07-25 08:10:48 +00:00
|
|
|
let pushState = "history" in require(6312) /* getGlobalSingleton */.GLOBAL_OBJ;
|
2026-07-23 10:11:24 +00:00
|
|
|
if (pushState) {
|
2026-07-25 08:10:48 +00:00
|
|
|
pushState = require(6312) /* getGlobalSingleton */.GLOBAL_OBJ.history.pushState;
|
2026-07-23 10:11:24 +00:00
|
|
|
}
|
|
|
|
|
if (pushState) {
|
2026-07-25 08:10:48 +00:00
|
|
|
pushState = require(6312) /* getGlobalSingleton */.GLOBAL_OBJ.history.replaceState;
|
2026-07-23 10:11:24 +00:00
|
|
|
}
|
|
|
|
|
return !runtime && pushState;
|
|
|
|
|
};
|