1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Minibug in require

This commit is contained in:
kkapsner 2019-04-08 23:56:25 +02:00
parent 7f048b80d7
commit d89bfe4cb0

View File

@ -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;
}