Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading fix #1356

Merged
merged 2 commits into from Feb 5, 2024
Merged

Loading fix #1356

merged 2 commits into from Feb 5, 2024

Conversation

bmatusiak
Copy link
Collaborator

@bmatusiak bmatusiak commented Jan 21, 2024

i use nwjs.. this is a mix of browser+nodejs

this PR fixes some loading of gun for that.

introducing a new look to exporting plugin modules that looks like this.

(function(name, exports){
  if(typeof window !== "undefined"){
    window[name] = window[name]||exports;
  } 
  try{ module.exports = exports }catch(e){}
})("Radix",Radix);

@amark
Copy link
Owner

amark commented Feb 5, 2024

sexy!

@amark amark merged commit e584906 into amark:master Feb 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants