Skip to content

This is my mistake, please delete it, sorry.#10204

Closed
yoyumiya wants to merge 1 commit intologseq:masterfrom
yoyumiya:dev
Closed

This is my mistake, please delete it, sorry.#10204
yoyumiya wants to merge 1 commit intologseq:masterfrom
yoyumiya:dev

Conversation

@yoyumiya
Copy link
Copy Markdown

@yoyumiya yoyumiya commented Sep 12, 2023

This is my mistake, please delete it, sorry.

;; Insert the following code into an appropriate location within your namespace.

;; Append a switch to disable site isolation trials
(.appendSwitch app.commandLine "disable-site-isolation-trials")

;; Set webPreferences to disable web security
(let [web-prefs
      {:webSecurity false}]
  (set! (.-webPreferences electron.BrowserWindow) web-prefs))

;; You can also set webPreferences for an individual BrowserWindow if needed.


---
     ;; Insert your JavaScript code here
     (js/const cookie {:url "http://music.163.com" :name "MUSIC_U" :value "hahaha"})
     (js/.then (.set (.-cookies (.-defaultSession session)) cookie)
               (fn [] (println "Success")))
     (js/.catch
      (.console.error js/console)
      (fn [error] (.error js/console error)))
     ))
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@yoyumiya yoyumiya closed this Sep 12, 2023
@yoyumiya yoyumiya deleted the dev branch September 12, 2023 10:56
@yoyumiya
Copy link
Copy Markdown
Author

This is my mistake, please delete it, sorry.

@yoyumiya yoyumiya changed the title Update window.cljs This is my mistake, please delete it, sorry. Sep 12, 2023
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.

2 participants