mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 21:00:23 +01:00
Minibug in require
This commit is contained in:
parent
7f048b80d7
commit
d89bfe4cb0
@ -25,7 +25,7 @@ const require = function(){
|
||||
|
||||
require.register = function(moduleName, module = {}){
|
||||
const scopeName = getScopeName(moduleName);
|
||||
if (!require.exists(moduleName)){
|
||||
if (!scope.hasOwnProperty(scopeName)){
|
||||
scope[scopeName] = module;
|
||||
return module;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user