blob: d357fca2d3fe0750ec47c8c82470ab0b4d56c813 (
plain)
1
2
3
4
5
6
7
8
9
10
|
"use strict";
// The following check is one possible way to identify
// if this script is loaded as a ES Module or the classic way.
const isLoadedAsEsModule = this != globalThis;
// We expect the debugger script to always be loaded as classic
if (!isLoadedAsEsModule) {
postMessage("debugger script ran");
}
|