refactor: move Console to op_crates/console (#9770)

This commit is contained in:
Luca Casonato 2021-03-12 21:23:59 +01:00 committed by GitHub
parent e83ff62ccb
commit 0770449c93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 129 additions and 71 deletions

View file

@ -3,7 +3,6 @@
((window) => {
const { build } = window.__bootstrap.build;
const internals = window.__bootstrap.internals;
let logDebug = false;
let logSource = "JS";
@ -100,7 +99,10 @@
return pathOrUrl;
}
internals.exposeForTest("pathFromURL", pathFromURL);
window.__bootstrap.internals = {
...window.__bootstrap.internals ?? {},
pathFromURL,
};
function writable(value) {
return {