mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Minibug in require
This commit is contained in:
parent
7f048b80d7
commit
d89bfe4cb0
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ const require = function(){
|
||||||
|
|
||||||
require.register = function(moduleName, module = {}){
|
require.register = function(moduleName, module = {}){
|
||||||
const scopeName = getScopeName(moduleName);
|
const scopeName = getScopeName(moduleName);
|
||||||
if (!require.exists(moduleName)){
|
if (!scope.hasOwnProperty(scopeName)){
|
||||||
scope[scopeName] = module;
|
scope[scopeName] = module;
|
||||||
return module;
|
return module;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue