remove async from handler, explicitly expose __uvHook
This commit is contained in:
parent
471f591ab0
commit
7b739260f0
1 changed files with 4 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ if (!self.__uv) {
|
|||
__uvHook(self, self.__uv$config, self.__uv$config.bare);
|
||||
};
|
||||
|
||||
async function __uvHook(window, config = {}, bare = '/bare/') {
|
||||
function __uvHook(window, config = {}, bare = '/bare/') {
|
||||
if ('__uv' in window && window.__uv instanceof Ultraviolet) return false;
|
||||
|
||||
if (window.document && !!window.window) {
|
||||
|
|
@ -1126,4 +1126,6 @@ async function __uvHook(window, config = {}, bare = '/bare/') {
|
|||
this.eval = val;
|
||||
},
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
self.__uvHook = __uvHook;
|
||||
Loading…
Add table
Reference in a new issue