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

enable webPreferences { experimentalFeatures:true} not working #43

Open
BumpyClock opened this issue Sep 20, 2024 · 0 comments
Open

enable webPreferences { experimentalFeatures:true} not working #43

BumpyClock opened this issue Sep 20, 2024 · 0 comments

Comments

@BumpyClock
Copy link

BumpyClock commented Sep 20, 2024

I am using backdrop-filter in my app and with regular BrowserWindow I can enable experimental features like this

const win = new BrowserWindow({
    width: 800,
    height: 600,
    webPreferences: {
    //   preload: path.join(__dirname, 'preload.js'),
      experimentalFeatures: true, // Enable experimental features
    },
    // transparent: true,  // Important for transparency
    autohideMenuBar: true, // Optional: if you want to hide the menu
    show: false,          // Optional: if you want to show the window later
    frame: true,       // Optional: if you want a frameless window
    vibrancy: 'ultra-dark', // This can be used to mimic the backdrop effect
  });

Doing the same in MicaBrowserWindow does nothing

 const win = new MicaBrowserWindow({
        backgroundMaterial: true,
        width: 1366,
        height: 912,
        webPreferences: {
            experimentalFeatures: true,
        },
        autoHideMenuBar: true,
        show: false,
        
    });
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

No branches or pull requests

1 participant