(snapshots)
| 138 | } |
| 139 | |
| 140 | function restorePageProps(snapshots) { |
| 141 | for (const key of Object.keys(snapshots)) { |
| 142 | const desc = snapshots[key]; |
| 143 | if (desc) { |
| 144 | Object.defineProperty(unsafeWindow, key, desc); |
| 145 | } else { |
| 146 | delete unsafeWindow[key]; |
| 147 | } |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | section("沙盒全局身份"); |
| 152 |