Skip to content

Instantly share code, notes, and snippets.

Avatar

Robo deepak1556

  • Microsoft
  • Redmond
View GitHub Profile
@deepak1556
deepak1556 / index.html
Created Jun 21, 2021
OOP shared worker
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
<script>
@deepak1556
deepak1556 / index.html
Last active Mar 12, 2021 — forked from jrieken/index.html
Service worker registration crash
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@deepak1556
deepak1556 / main.js
Created Dec 12, 2019
Super key menu labelling issue on linux
View main.js
const {app, BrowserWindow, Menu} = require('electron')
app.on('ready', function() {
var mainWindow = new BrowserWindow({});
var menuTemplate = [
{
label: 'View',
submenu: [
{
View compile.log
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\include\functional:10:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\include\xmemory(758,76): error: call to implicitly-deleted copy constructor of 'std::pair<const unsigned int, Ex1>'
::new (const_cast<void*>(static_cast<const volatile void*>(_Ptr))) _Objty(_STD forward<_Types>(_Args)...);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\include\list(541,25): note: in instantiation of function template specialization 'std::_Default_allocator_traits<std::allocator<std::_List_node<std::pair<const unsigned int, Ex1>,
void *> > >::construct<std::pair<const unsigned int, Ex1>, const std::pair<const unsigned int, Ex1> &>' requested here
_Alnode_traits::construct(this->_Al, _STD addressof(this->
View crash.txt
thread #1, name = 'CrRendererMain', queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x500000018)
* frame #0: 0x000000010eb6bdb5 Electron Framework`v8::Context::GetIsolate() [inlined] v8::internal::Isolate::FromHeap(v8::internal::Heap*) at isolate.h:910:71 [opt]
frame #1: 0x000000010eb6bdb5 Electron Framework`v8::Context::GetIsolate() [inlined] v8::internal::GetIsolateFromWritableObject(object=<unavailable>) at isolate-utils-inl.h:41 [opt]
frame #2: 0x000000010eb6bdab Electron Framework`v8::Context::GetIsolate() [inlined] v8::internal::Context::GetIsolate(this=<unavailable>) const at contexts-inl.h:48 [opt]
frame #3: 0x000000010eb6bdab Electron Framework`v8::Context::GetIsolate(this=0x00007f80db840248) at api.cc:5997 [opt]
frame #4: 0x0000000111b32d74 Electron Framework`blink::ToLocalDOMWindow(context=(val_ = 0x00007f80db840248)) at v8_binding_for_core.cc:645:28 [opt]
frame #5: 0x0000000111b3c6a7 Electron Framework`blink::PromiseRejectHandlerInMainThread(v8:
View crash.txt
* thread #1, name = 'CrRendererMain', queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x500000018)
* frame #0: 0x000000010b07cef5 Electron Framework`v8::Context::GetIsolate() [inlined] v8::internal::Isolate::FromHeap(v8::internal::Heap*) at isolate.h:910:71 [opt]
frame #1: 0x000000010b07cef5 Electron Framework`v8::Context::GetIsolate() [inlined] v8::internal::GetIsolateFromWritableObject(object=<unavailable>) at isolate-utils-inl.h:41 [opt]
frame #2: 0x000000010b07ceeb Electron Framework`v8::Context::GetIsolate() [inlined] v8::internal::Context::GetIsolate(this=<unavailable>) const at contexts-inl.h:48 [opt]
frame #3: 0x000000010b07ceeb Electron Framework`v8::Context::GetIsolate(this=0x00007fdcb203b218) at api.cc:5997 [opt]
frame #4: 0x000000010e0437e4 Electron Framework`blink::ToLocalDOMWindow(context=(val_ = 0x00007fdcb203b218)) at v8_binding_for_core.cc:645:28 [opt]
frame #5: 0x000000010e04d117 Electron Framework`blink::PromiseRejectHandlerInMainThread(v
@deepak1556
deepak1556 / index.html
Last active Nov 26, 2019
Debugging Async/Await crash with electron
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
<script>
@deepak1556
deepak1556 / index.html
Created Nov 12, 2019
Wrong value of window.isMaximized when task bar is auto-hidden
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
</body>
<script>
const remote = require('electron').remote
@deepak1556
deepak1556 / log.txt
Last active Oct 29, 2019
Building libperfetto from lkgr chromium in non component build with VS 2019/2017
View log.txt
FAILED: obj/third_party/perfetto/protos/perfetto/common/cpp/descriptor.gen.obj
..\..\third_party\llvm-build\Release+Asserts\bin\clang-cl.exe /nologo /showIncludes "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\ATLMFC\include" "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\include" "-imsvcC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" -DDCHECK_ALWAYS_ON=1 -DUSE_AURA=1 "-DCR_CLANG_REVISION=\"373424-64a362e7-1\"" -D_HAS_NODISCARD -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPE
@deepak1556
deepak1556 / main.js
Last active Aug 16, 2019
MacOS native tab clipped view with electron
View main.js
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow
function createWindow () {
// Create the browser window.
mainWindow = new BrowserWindow({